Hey there,
i think there are not much easy to use howtos online…so i just reused my one and it worked perfect - so i want to share my documentation to help you…
yum install rpm sharutils
mkdir /temp
cd /temp
wget http://yum.trixbox.org/centos/5/RPMS/hylafax-4.4.4-1rhel5.i386.rpm
wget ftp://ftp.hylafax.org/binary/linux/redhat/6.0.6/hylafax-server-6.0.6-1rhel6.x86_64.rpm
wget ftp://ftp.hylafax.org/binary/linux/redhat/6.0.6/hylafax-client-6.0.6-1rhel6.x86_64.rpm
rpm -i hylafax-server-6.0.6-1rhel6.x86_64.rpm hylafax-client-6.0.6-1rhel6.x86_64.rpm
/usr/sbin/faxsetup
Press enter for all, expect following:
Country code [1]? <- enter value for your country…
Area code []? <- enter value for your country WIHTOUT leading numbers
Long distance dialing prefix [1]? < enter value for your country…
International dialing prefix [011]? enter value for your country…
if faxaddmodem is called, insert NO or press CTR+C
wget http://downloads.sourceforge.net/project/iaxmodem/iaxmodem/iaxmodem-1.2.0/iaxmodem-1.2.0.tar.gz
gunzip iaxmodem-1.2.0.tar.gz
tar xfv iaxmodem-1.2.0.tar
cd iaxmodem-1.2.0
./build static
cp iaxmodem /usr/local/sbin
mkdir /etc/iaxmodem
vi /etc/iaxmodem/ttyIAX0
insert the following lines and save:
device /dev/ttyIAX0
owner uucp:uucp
mode 666
port 4570
refresh 50
server 127.0.0.1
peername extension_number_that_you_create_later_in_freepbx
secret password_you_will_enter_later_in_freepbx
codec alaw
vi config.ttyIAX
change the following lines to your need:
CountryCode: your countrycode!
AreaCode: your areacode WITHOUT leading numbers
FAXNumber: type in complete number with international predial
LongDistancePrefix: as in your country…
InternationalPrefix: as in your country…
RecvFileMode: 0777
LocalIdentifier: your_complete_fax_identifier (is written on each fax you send…)
cp config.ttyIAX /var/spool/hylafax/etc/config.ttyIAX0
vi /etc/init/iaxmodem.conf
insert and save following:
start on stopped rc RUNLEVEL=123
stop on runlevel !123
respawn
exec /usr/local/sbin/iaxmodem ttyIAX0
vi /etc/init/faxgetty.conf
insert following and save:
start on stopped rc RUNLEVEL=123
stop on runlevel !123
respawn
exec /usr/sbin/faxgetty ttyIAX0
vi /etc/rc.local
insert following and save:
start iaxmodem
start faxgetty
vi /var/spool/hylafax/etc/hosts.hfaxd
add and save:
192.168.xxx.* <— while X is your local ip range…
vi /var/spool/hylafax/etc/FaxDispatch
change and save
SENDTO=your_email_receiver_if_you_want_get_fax_per_mail
vi /var/spool/hylafax/bin/pdf2fax.gs
change
vres=98
to
vres=196
and save
in freepbx
check that Module “Asterisk IAX Settings” is installed
Open it and insert under Other IAX settings
calltokenoptional = 0.0.0.0/0.0.0.0
maxcallnumbers = 16382
create a new extension IAX2, use the extension-number you specified in the ttyIAX0-File, and the secret. set the otpion requirecalltoken to NO.
reboot the system and you are done!
have fun!