summaryrefslogtreecommitdiff
path: root/recipes-core/multitech/config/ppp/peers/gsm_chat
blob: a92c938f9dec9493174abb28b17a916bd93eb085 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
SAY "GSM chat\n"
ECHO OFF
ABORT 'NO DIAL TONE'
ABORT 'NO DIALTONE'
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
ABORT 'DELAYED'
ABORT 'VOICE'
ABORT 'BUSY'
'' 'AT'
OK 'ATZ'
OK 'AT+CSQ'
# ----------------------------------
# Set the APN for your provider here
# Note that a comment starting with
# #MT AT+CGDCONT=
# will be interpretted by
# /usr/libexec/chat_wrapper
# as the intended context
# setting.  Make the context number
# (after the =) match the
# dialer number context.
# If the context changes, chat_wrapper
# handles disconnecting the modem
# from the network during the update,
# which is required
# by some modem firmware.
# The chat script will be executed
# after the chat_wrapper script
# re-registers the modem.
# The context will only be set if the
# modem settings do not match the
# settings here.
# Lines starting with # MT are ignored.
# ----------------------------------
# MT AT+CGDCONT=1,"IP","proxy"
# MT AT+CGDCONT=1,"IP","ISP.CINGULAR"
# MT AT+CGDCONT=1,"IP","internet2.voicestream.com"
#MT AT+CGDCONT=1,"IP","internet"
OK 'AT+CGDCONT?'
SAY "Dialing...\n"
#OK 'ATD*99#'
OK 'ATD*99***1#'
SAY "Waiting for CONNECT...\n"
TIMEOUT 120
CONNECT ''
SAY "Connected\n"