summaryrefslogtreecommitdiff
path: root/recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz')
-rw-r--r--recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz48
1 files changed, 48 insertions, 0 deletions
diff --git a/recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz b/recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz
new file mode 100644
index 0000000..ea5907e
--- /dev/null
+++ b/recipes-core/multitech/config/ppp/peers/l4n1_chat_non_vz
@@ -0,0 +1,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"