summaryrefslogtreecommitdiff
path: root/recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz
blob: ea5907ea89b6d5a2eaa5c187f97660b166109812 (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
48
#----------------------------------------
# Do NOT use this CHAT script with
# Verizon wireless.  It will bind
# this SIM and device to the wrong
# APN.
#
# mlinux-set-apn can be used to set
# the APN.
#
# mlinux-switch-cell-fw can be used
# to switch the firmware settings
# and set the correct CHAT script.
#
# # mlinux-set-apn "APN"
#
# And to switch the firmware to Verizon:
# # mlinux-switch-cell-fw 1
#
# And to switch to AT&T:
# # mlinux-switch-cell-fw 0
#----------------------------------------
SAY "L4N1 chat not for Verizon\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 non-Verizon APN on the next line
#-------------------------------------------
#OK 'AT+CGDCONT=3,"IP","proxy"'
#OK 'AT+CGDCONT=3,"IP","ISP.CINGULAR"'
#OK 'AT+CGDCONT=3,"IP","internet2.voicestream.com"'
OK 'AT+COPS=2'
OK 'AT+CGDCONT=3,"IP","phone"'
OK 'AT+COPS=0'
SAY "Dialing...\n"
OK 'ATD*99***3#'
SAY "Waiting for CONNECT...\n"
TIMEOUT 120
CONNECT ''
SAY "Connected\n"