Install t38modem

  1. Goto http://www.opalvoip.org/ and download ptlib-2.6.7 and opal-3.6.8 from SourceForge
  2. untar the packages
  3. set the default lib search path with 'export LD_LIBRARY_PATH=/opt/opal/lib:/opt/ptlib/lib'
  4. set the location of the ptlib source code with 'export PTLIBDIR=<path to ptlib source>'
  5. first compile ptlib with './configure --prefix /opt/ptlib; make; make install'
  6. set the location of the opal source code with 'export OPALDIR=<path to opal source>'
  7. then compile opal with './configure --prefix /opt/opal; make; make install'
  8. download t38modem-1.2.0 from http://sourceforge.net/projects/t38modem/
  9. compile t38modem with 'make USE_OPAL=1 opt'
  10. copy t38modem from obj_linux_x86_opal to /usr/local/bin
  11. to fix libraries run 'patchelf --set-rpath /opt/opal/lib:/opt/ptlib/lib t38modem'
I could not get things to work with t38modem 3.6.8. So please download v2.0.0 including the accompanying opal branch.

Start script

t38modem
  -t

  --no-h323
  -u T38modem
  --sip-listen udp\$localhost:5061
  -p ttyx0,ttyx1
  --route "modem:.*=sip:<dn>@localhost"
  --route "sip:.*=modem:<dn>"

Setup HylaFax

  1. faxsetup
  2. cp <t38modem src dir>/HylaFAX/config.ttyx /var/spool/fax/etc/config.ttyx0
  3. cd /var/spool/fax/etc
  4. ln -s config.ttyx0 config.ttyx1
  5. echo "t1:2345:respawn:/usr/sbin/faxgetty ttyx0" >> /etc/inittab
  6. echo "t1:2345:respawn:/usr/sbin/faxgetty ttyx1" >> /etc/inittab
  7. killall -HUP init
  8. faxaddmodem

Tests

# faxstat
HylaFAX scheduler on <host>: Running
Modem ttyx0 (): Running and idle
Modem ttyx2 (): Running and idle
Modem ttyx1 (): Running and idle