Technical data
85
then
atinit="${atinit}${baud}"
fi
#
# Create the dial script now
#
echo "#! /bin/sh" > ${dial}
echo "" >> ${dial}
echo "chat -S -V -t 90 ABORT BUSY ABORT NO REPORT CONNECT '' \"${atinit}\" OK
ATD${phone} CONNECT " >> ${dial}
chmod 700 ${dial}
logger -i -t callback.sh "Callback(${phone},${tty_dev},\"${atinit}\"${name})" > /dev/null
2>&1
#
# Start PPP
#
/usr/sbin/pppd.callback ${tty_dev} 115200 connect ${dial} modem user $user nocallback
nodetach
exit $(($?))
6. Change the permissions of callback.sh file to "executable".
7. The callback script receives the callback number, the Dialogic
®
Diva
®
TTY device name and the peer name
from the command line, i.e., from pppd.callback instance that was responsible for the callback procedure
and retrieves the information about used bearer protocol and framing from the management interface of
Dialogic
®
Diva
®
TTY driver. Finally, "callback.sh" uses the available information to construct dial script and to
issue the callback.
The mgetty+sendfax package contains mgetty, a daemon that allows processing of incoming fax polling
requests.
To set up a simple fax polling server, proceed as described below:
1. Make sure that the mgetty+sendfax package is installed on your system.
2. Change the context of the /etc/mgetty+sendfax/mgetty.config file as follows:
# Select your preferred debug level here.
# The current global debug level is "4" (default from policy.h).
debug 4
# Set any interface. The exact value is not important
# because the Dialogic
®
Diva
®
TTY interface is virtual.
speed 38400
init-chat "" AT?F;S0=0;E0;\\V1#CID=1 OK
#
# Set your FAX ID in the following line
#
fax-id 0123456789
How to set up a simple fax polling server (mgetty)