System Administration Guide: Resource Management and Network Services

Chat Script for External ISDN TA

The following chat script is for calling from a dial-out machine with a ZyXEL omni.net. ISDN TA.


        SAY "Calling the peer\n"
        TIMEOUT 10
        ABORT BUSY
        ABORT 'NO CARRIER'
        ABORT ERROR
        REPORT CONNECT
        "" AT&FB40S83.7=1&K44&J3X7S61.3=1S0=0S2=255
        OK ATDI18882638234
        CONNECT \c
       \r \d\c
        SAY "Connected; running PPP\n"

The following table explains the parameters of the chat script.

Script Contents 

Explanation 

SAY “Calling the peer”

Display this message on the screen of the dial-out machine. 

TIMEOUT 10

Set the initial timeout to 10 seconds. 

ABORT BUSY

Abort transmission if the modem receives this message from the opposite peer. 

ABORT 'NO CARRIER'

Abort transmission if the modem receives this message from the opposite peer. 

ABORT ERROR

Abort transmission if the modem receives this message from the opposite peer. 

REPORT CONNECT

Gather the CONNECT string from the modem and print it out.

""  

AT&FB40S83.7=

1&K44&J3X7S61.3=1

S0=0S2=255

The letters in this line have the following meaning:

  • &F – Use factory default

  • B40 – Do asynchronous PPP conversion

  • S83.7=1 – Use data over speech bearer

  • &K44 – Enable CCP compression

  • &J3 – Enable MP

  • X7 – Report DCE side rates

  • S61.3=1 – Use packet fragmentation

  • S0=0 – No auto answer

  • S2=255 – Disable TIES escape

OK ATDI18882638234

Make an ISDN call. For multi-link, the second call is placed to the same telephone number, which is normally what is required by most ISPs. If the remote peer requires a different second phone number, append “+nnnn” (nnnn represents the second phone number).

CONNECT \c

Wait for the CONNECT message from the opposite peer's modem.

\r \d\c 

Wait until the end of the CONNECT message.

SAY "Connected; running PPP\n"

Display this message on the screen of the dial-out machine. 

Refer to thechat(1M) man page for descriptions of options and other detailed information about the chat script. For an explanation of expect-send strings, refer to UUCP Chat Script Field.