t38modem

Install t38modem

    Goto http://www.opalvoip.org/ and download ptlib-2.6.7 and opal-3.6.8 from SourceForge
    untar the packages
    set the default lib search path with 'export LD_LIBRARY_PATH=/opt/opal/lib:/opt/ptlib/lib'
    set the location of the ptlib source code with 'export PTLIBDIR=<path to ptlib source>'
    first compile ptlib with './configure --prefix /opt/ptlib; make; make install'
    set the location of the opal source code with 'export OPALDIR=<path to opal source>'
    then compile opal with './configure --prefix /opt/opal; make; make install'
    download t38modem-1.2.0 from http://sourceforge.net/projects/t38modem/
    compile t38modem with 'make USE_OPAL=1 opt'
    copy t38modem from obj_linux_x86_opal to /usr/local/bin
    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

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

Tests
# faxstat
HylaFAX scheduler on <host>: Running
Modem ttyx0 (): Running and idle
Modem ttyx2 (): Running and idle
Modem ttyx1 (): Running and idle
  • orphans/t38modem.txt
  • Последние изменения: 2015/01/09