# id interface dst src mask flags dialer line speed phone retr[/nextid] chat
# id interface dst src mask flags direct line speed  -    retr[/nextid] chat
# id interface dst src mask flags local  line speed  -    retr[/nextid] chat
# id interface dst src mask flags leased line speed  -    retr[/nextid] chat
# id interface dst src mask flags
#
# flags:
# +lockcomp,-lockcomp - Compression on/off
# +autocomp,-autocomp - Compression enable on/off
# +extcomp            - +autocomp in login mode, +lockcomp in dialup mode
# -extcomp            - +autocomp in login mode, -lockcomp in dialout
# +bpf,-bpf           - turn on/off BPF
# +multicast,-multicast - turn on/off MULTICAST
# mtu=        - set MTU size
# keepal=     - set time for keepalive checking.
#                       Line is DOWN if no packets was received during this time`
#
# outfill=    - Send _keepalive_ packet (dummy SLIP packet) every ... seconds
# wait=       - Turn interface ON only when ... packets would be received
#  You can use short names of flags

# ID IF DST SRC MASK FLAGS DIALER LINE SPEED PHONE RETR CHAT
#
#############################################################
# dialup, with dialer
# dialup 3 times using 3 phone numbers, then go to label spb-gw
#  spb-gw.
kaija sl0 193.124.81.66 193.124.81.67 255.255.255.0     \
		+e,outfill=1,keepal=60,wait=2,mtu=600   \
		/usr/local/bin/qx /dev/tty00 19200      \
		T2986410|2980532|2981128                \
		3/spbgw \r\c ogin: ipchech word  *
# Call twice 2 phone numbers, then return to kaija
#
spbgw sl1 193.124.254.3 193.124.254.2 255.255.255.0     \
		+e,outfill=1,keepal=60,+bpf,wait=5      \
		/usr/local/bin/qx /dev/tty00 38400      \
		1106859;BT12000D|1106395                \
		1/kaija \r\c ogin: ipch word  *
# Using _leased_ instead of _modem_ -
# You have to wait _CONNECT_ before sending 'login'.
#  chat' (login, passwd)    
Lkaija sl0 193.124.81.66 193.124.81.67 255.255.255.0 \
		+e,outfill=1,keepal=60,mtu=600 \
		leased /dev/tty00 19200 - \
		1/Lkaija \
		AAAT \5OK ATM2DP2986410;BT12000D \60CONNECT \
		\r\c ogin: ipchech word  *
#############################################################
# leased line
# We send commands to modem to prevent it's dropping leased line mode.
# Usially it is not nessesary. If modem was in Leased Line mode, additional
# AT commends would be received by remote SLIP and dropped - everything
# would be OK too.
#
m9ldx sl1 193.124.254.12 193.124.254.11 255.255.255.0   \
	  +lock,outfill=1,keepal=45,wait=5              \
	  leased  ttyi4 57600 - 10/m9ldx                \
	  \d\dAAAT\r\d\dAATO\r\c \10*
# second (parallel) entry to m9ldx
m9ldx-2 sl1 193.124.254.12 193.124.254.11 255.255.255.0 \
	  +lock,outfill=1,keepal=45,wait=5              \
	  leased  ttyi5 57600 - 10/m9ldx-2              \
	  \d\dAAAT\r\d\dAATO\r\c 10*
############################################################
# direct connection
# For SRM modems.
rcom sl3 193.124.80.69 193.124.254.5 255.255.255.0      \
	  +lock,outfill=1,keepal=30,wait=4              \
	  direct  ttyr3 38400 - 100/rcom  "" \2*

