Iâve actually got it working but Avantfax does not support PHP 7 so right now Iâm trying to get PHP 5.6 compiled from source to work with PHP7 but the jist of it is as follows
#Install IAXModem 1.3.0
cd âŚ
wget https://downloads.sourceforge.net/project/iaxmodem/iaxmodem/iaxmodem-1.3.0.tar.gz
tar zxf iaxmodem-1.3.0.tar.gz
cd iaxmodem-1.3.0
./configure --libdir=/usr/lib64
./build static
mkdir -p /etc/iaxmodem
mkdir -p /var/log/iaxmodem
cp iaxmodem /usr/local/sbin/
nano /etc/iaxmodem/ttyIAX1
device /dev/ttyIAX1
owner uucp:uucp
mode 660
port 4570
refresh 300
server 127.0.0.1
peername 1234
secret secret
codec ulaw
cidname Fax Server
cidnumber 5555551212
nojitterbuffer
#Install Hylafax
cd âŚ
wget ftp://ftp.hylafax.org/source/hylafax-6.0.7.tar.gz
tar zxf hylafax-6.0.7.tar.gz
cd hylafax-6.0.7
./configure
make
make install
faxsetup
mysql_upgrade -p
nano /var/spool/hylafax/etc/config.ttyIAX1
CountryCode: 1
AreaCode: 555
FAXNumber: 1.555.555.1212
LongDistancePrefix: 1
InternationalPrefix: 011
DialStringRules: âetc/dialrulesâ
ServerTracing: 1
SessionTracing: 1
RecvFileMode: 0600
LogFileMode: 0600
DeviceMode: 0600
RingsBeforeAnswer: 1
SpeakerVolume: off
GettyArgs: â-h %l dx_%sâ
LocalIdentifier: âFax Serverâ
TagLineFont: etc/lutRS18.pcf
TagLineFormat: âFrom %%l|%c|Page %%P of %%Tâ
MaxRecvPages: 200
JobReqNoCarrier: 180
JobReqNoAnswer: 180
FaxRcvdCmd: bin/faxrcvd.php
DynamicConfig: bin/dynconf.php
NotifyCmd: bin/notify.php
ModemType: Class1 # use this to supply a hint
ModemResetCmds: âATH1\nAT+VCID=1â # enables CallID display
ModemReadyCmds: ATH0
Class1AdaptRecvCmd: AT+FAR=1
Class1TMConnectDelay: 400 # counteract quick CONNECT response
Class1RMQueryCmd: â!24,48,72,96â # V.17 fast-train recv doesnât work well
Class1TMQueryCmd: â!24,48,72,96â # V.17 fast-train recv doesnât work well
CallIDPattern: âNMBR=â
CallIDPattern: âNAME=â
CallIDPattern: âANID=â
CallIDPattern: âNDID=â
#Edit HylaFAX Verticle Resolution
nano /usr/local/lib/fax/hyla.conf
JobFmt: â%-5j %1a %15o %-15.15e %5P %5D %5i %7z %.25sâ
RcvFmt: â%7o %-10t %-25s %-20f %5p %1z %-40eâ
PageSize: na-let
VRes: 196
#ASTERISK MANAGER/DB PASSWORD
faxadduser -a admin [asterisk admin password] from manager.conf
faxdeluser localhost
faxdeluser 127.0.0.1
echo 127.0.0.1 >> /var/spool/hylafax/etc/hosts.hfaxd
cd /usr/lib/systemd/system
nano iaxmodem.service
[Unit]
Description=IAXModem for /dev/ttyIAX1
[Service]
Type=simple
Restart=always
RestartSec=30
ExecStart=/usr/local/sbin/iaxmodem ttyIAX1
[Install]
WantedBy=multi-user.target
nano faxgetty.service
[Unit]
Description=Faxgetty for /dev/ttyIAX1
[Service]
Type=simple
Restart=always
RestartSec=30
ExecStart=/usr/sbin/faxgetty ttyIAX1
[Install]
WantedBy=multi-user.target
nano hfaxd.service
[Unit]
Description=Hylafax hfaxd
[Service]
Type=forking
ExecStart=/usr/local/sbin/hfaxd -i hylafax
[Install]
WantedBy=multi-user.target
nano faxq.service
[Unit]
Description=faxq
[Service]
Type=forking
ExecStart=/usr/local/sbin/faxq
[Install]
WantedBy=multi-user.target
systemctl enable iaxmodem
systemctl enable faxgetty
systemctl enable hfaxd
systemctl enable faxq
systemctl start iaxmodem
systemctl start faxgetty
systemctl start hfaxd
systemctl start faxq
Hope this helps!