# init file is called on connection to server
#############################################################################
# keywords:
#
# opendevice 		<speed> 	<"devicename"> 
# baud 			<speed>
# sleep			<time>
# wait			<time>
# send 			<"string">
# hangupstring 		<"string">
# connectstring		<"string">
# nodialtonestring 	<"string">
# nocarrierstring 	<"string">
# busystring 		<"string">
#############################################################################
# opendevice	opens devicename with speed; this must be the first entry !
# baud		sets baudrate
# sleep		sleeps time 1/10 seconds
# wait		waits time seconds for string; if in time secs this string
#		is not received the server closes the connection
# send		sends a string to the device
# hangupstring	is the string to be sent to the device (modem) on hangup
#
# <"string">: 
# '~' = sleep 1 sec
# '\' = quote character    e.g. \^ \~ \\
# '^' = control character  e.g. ^M = return  ^J = line_feed
#############################################################################
opendevice	38400	"/dev/cuaa0"
hangupstring		"~+++~ATH0^M~ATZ"
connectstring		"CONNECT"
nodialtonestring 	"NO DIALTONE^M"
nocarrierstring 	"NO CARRIER^M"
busystring 		"BUSY^M"


send            "ATZ^M"        	# reset
sleep 10
send 		"~ATD01910^M"	# Btx service Deutsche Telekom

wait		100	# wait 100 sec for BUSY, CONNECT, NO CARRIER, ....
