########################################### # Suggested chat script called by PPPD # File: /etc/ppp/vodafone-chat ########################################### ABORT BUSY ABORT 'NO CARRIER' ABORT ERROR REPORT CONNECT TIMEOUT 120 "" "AT&F" OK "ATE1" # Is there a PIN set on the SIM? #OK 'AT+CPIN?' #OK 'AT+CPIN="1487"' # What network are we connected to? OK "AT+COPS?" # Next line can be used to get a full list of available # networks, but it takes a long time! #OK "AT+COPS=?" # List what AT commands we can issue to this card. #OK "AT&V" # Prefer UMTS networks over GPRS networks # (but connect to GPRS if UMTS unavailable) OK "AT_OPSYS=3" # Current network signal strength OK "AT+CSQ" # Note the single quotes at the beginning and end, # reversing the quoting (double at ends, single # inside) does NOT work! #OK 'AT+CGDCONT=1,"IP","internet"' OK 'AT+CGDCONT=1,"IP","internet.vodafone.pt"' SAY "Calling Vodafone GPRS\n" TIMEOUT 60 OK "ATD*99***1#" CONNECT c ########################################### ###########################################