# /etc/ppp/chat/gprs -- an example chat script for a GPRS modem.
#
# You'll need to edit this for the extra AT commands for setting up
# the GPRS connection and the 'phone number' to dial.
#
# Uncomment the following line to see the connect speed.
# It will be logged to stderr or to the file specified with -r .
#REPORT         CONNECT
ABORT BUSY
ABORT VOICE
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "NO DIAL TONE"
'' "\d+++\dAT"
OK "AT+CFUN=0"
OK "AT+CFUN=1"
'' "\d\d\dAT"
OK "\dATZ"
ATZ "\c"
'' "\tAT"
OK "AT+CMEE=1"
OK "\d\d\d\d\dAT+CGATT=1"
# Example GPRS connection parameters:
# AT+CGDCONT=<CID>,"<protocol>","<APN>"
OK AT+CGDCONT=1,"IP","isp.cingular"
# Change this 'phone number' if required.
OK "ATD*99***1#"
CONNECT "\c"
