> -----Original Message-----
> From: Stuart Henderson [mailto:[EMAIL PROTECTED] 
> Sent: 08 June 2006 12:19 PM
> To: Marius Van Deventer - Umzimkulu
> Cc: misc@openbsd.org
> Subject: Re: entering custom AT commands into ppp.conf
> 
> 
> > >By asking this queston i admit that i have no idea how 
> ppp.conf works.
> > >I have to enter the init strings manually using minicom 
> before i dial.
> > >AT+CGDCONT=1,"IP","internet"
> > >
> > >Obviously there HAS to be a way to include these in 
> ppp.conf. All my
> > >attempts have failed.
> 
> It's difficult to get the quoting just right.
> Would anyone like to commit this?
> 
> 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
> 


Thanks Stuart. This works for me.

[demime 1.01d removed an attachment of type application/x-pkcs7-signature which 
had a name of smime.p7s]

Reply via email to