Wednesday, December 13, 2006

Script for connecting to Safaricom GPRS on linux box

Here is a working chatscript for connecting to the safaricom gprs network
#provider script
/dev/rfcomm0 115200
connect '/usr/sbin/chat -v -f /etc/ppp/peers/chat-gprs'
noauth
defaultroute
debug
noipdefault
usepeerdns


Here is the chat script
TIMEOUT 5
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' \rAT
TIMEOUT 12
OK ATZ
OK 'AT+cgdcont=1,"IP","SAFARICOM"'
OK ATDT*99***1#


No comments: