oops. Well spotted Marius.

+ set phone "*99#"
should have been
+ set phone "*99\#"

I did test it but my phone obviously didn't require the #.


Index: etc/ppp/ppp.conf.sample
===================================================================
RCS file: /data/cvsroot/OpenBSD/src/etc/ppp/ppp.conf.sample,v
retrieving revision 1.21
diff -u -r1.21 ppp.conf.sample
--- etc/ppp/ppp.conf.sample     9 Jun 2002 06:15:15 -0000       1.21
+++ etc/ppp/ppp.conf.sample     8 Jun 2006 10:12:24 -0000
@@ -101,6 +101,23 @@
  add default HISADDR
  enable dns
 
+# To connect via a GPRS device (e.g. a mobile phone), it's often
+# necessary to set the access-point name (in this case 'internet')
+# which requires quotes in the dial string. This section shows
+# the escaping required.
+#
+gprs:
+ set device /dev/cuaU0
+ set dial "ABORT ERROR ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
+           \"\" ATZ OK-ATZ-OK AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\" OK 
\\dATD\\T TIMEOUT 40 CONNECT"
+ set phone "*99\#"
+ set speed 115200
+ set login
+ set timeout 0
+ set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
+ add default HISADDR
+ enable dns
+
 #                          Example segments
 #
 # The following lines may be included as part of your configuration

Reply via email to