Please note that this is a quickstart guide, for more detailed configuration check the respective product websites and READMEs.
1. Package requirements
libtiff
libtiff-devel
2. Installing IAXmodem
Untar your IAXmodem tarball (/usr/src/)
#> cd /usr/src/
#> tar xvfz iaxmodem-0.1.14.tar.gz
Install libiax2:
The libiax2 source is included with IAXmodem
#> cd /usr/src/iaxmodem-0.1.14/lib/libiax2
#> ./configure
#> make; make install
Install spandsp:
The spandsp source is included with IAXmodem
#> cd /usr/src/iaxmodem-0.1.14/lib/spandsp
#> ./configure
#> make; make install
Install IAXmodem and create a symbolic link for IAXmodem in /usr/sbin
#> cd /usr/src/iaxmodem-0.1.14/
#> ./build
#> ln -s /usr/sbin/iaxmodem iaxmodem
3. Running IAXmodem
IAXmodem can be run in daemon and non-daemon mode, it is recommended to run IAXmodem in non-daemon mode during the installation/configuration for easier debugging and then run it in daemon mode once all configuration is working.
Create the /etc/iaxmodem/ directory to store your IAXmodem configuration files:
#> mkdir /etc/iaxmodem
You will need a separate configuration file for each fax line. Configuration for each fax line are stored in /etc/iaxmodem/<name of fax device>.
Create a configuration file for a fax device called ttyIAX1
#> vi /etc/iaxmodem/ttyIAX1
---begin here---
device /dev/ttyIAX1
uucp:uucp
mode 660
port 4571 ; you will need a different port for each device
refresh 60
server 127.0.0.1
peername iaxmodem1
secret password
cidname John Doe
cidnumber 8005551212
codec ulaw
---end here---
For more details about parameter options, see /usr/src/iaxmodem/README
Add an IAX account for this modem in Asterisk:
#> vi /etc/asterisk/iax.conf
---begin here---
[iaxmodem1]
type=friend
secret=password
host=dynamic
port=4671
context=outgoingfax
allow=all
---end here---
type "reload" in the Asterisk CLI to apply changes.
I have installed IAXmodem (not install HylaFax and AvanFAX at this moment). When I try to confirm whether IAXmodem is properly installed. I got the following. What does it imply?