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.
Start IAXmodem for ttyIAX1
#> iaxmodem ttyIAX1
Start hylafax for ttyIAX1作者: ckleea 時間: 2011-3-3 09:07
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?
Some are logging data and some are error log. Anyway, I found the resolution to make it and become quiet in my CLI console now.
In non-daemon mode IAXmodem does not detach itself from the controlling
tty, and it does send logging data both to standard output (informational
items) and to standard error (errors). As this logging can be a bit
verbose, you may choose to ignore all of it by starting IAXmodem like
this:
/path/to/iaxmodem ttyIAX >/dev/null 2>&1
; the addition of latter part in the statement works.