Technical data

64
This section describes step-by-step how to set up a dial-in server using mgetty and pppd applications.
The dial-in server is built using the mgetty and pppd utilities. mgetty is responsible for TTY interface
initialization and call answering. pppd provides a method for transmitting datagrams over point-to-point links
and is responsible for link control, authentication, and for network protocol configuration.
The Dialogic
®
Diva
®
TTY interface is set in auto-detection mode. In this mode, the TTY driver will detect the type
of the used protocol and PPP framing and will convert it to ASYNC PPP. This allows the calls to be served by
pppd in the same way.
Setting up a "ppp" dial-in server
To set up a dial-in 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:
# set the global debug level to "4" (default from policy.h)
#debug 9
# access the modem(s) with 38400 bps
speed 38400
# This is 33600 only
#init-chat "" AT&F14;S0=0;E0;\\V1#CID=1;+ms=v34,1 OK
init-chat "" AT&F14+IF5+IM4;S0=0;E0;\\V1#CID=1 OK
data-only y
blocking no
toggle-dtr no
modem-type data
modem-check-time 0
autobauding no
answer-chat-timeout 180
3. Change the context of the /etc/mgetty+sendfax/login.config file as follows:
# Automatic PPP startup on reception of LCP configuration request (AutoPPP).
# mgetty has to be compiled with "-DAUTO_PPP" for this to work.
/AutoPPP/ - a_ppp /usr/sbin/pppd modem
#
# Disable login sessions
#
* - - /bin/false @
4. Add the following lines to the /etc/inittab file, one for every Diva TTY interface that you plan to use for your
dial-in server.
SXX:2345:respawn:/usr/sbin/mgetty ttydsXX
"XX" is the Dialogic
®
Diva
®
TTY device number (01, 02, etc.). For example, if one Dialogic
®
Diva
®
BRI Media
Board with 2 channels is installed in the system, you should add two entries:
S01:2345:respawn:/usr/sbin/mgetty ttyds01 S02:2345:respawn:/usr/sbin/mgetty ttyds02
How to set up a dial-in server