Stefan Lambrev wrote:
client1: create bundle template B1create link static L1 modem set modem device /dev/cuaU0 set modem speed 115200 set modem script DialPeer set modem idle-script AnswerCall set modem var $DialPrefix "DT" set modem var $Telephone "*99***1#" set link no pap chap eap set link accept pap set auth authname "MyLogin" set auth password "MyPassword" set link max-redial 1 set link action bundle B1 open
Here's my config for another GPRS/UMTS provider: startup: default: eranet: log ipcp ipcp2 create bundle static B1 set iface route default set ipcp ranges 0.0.0.0/0 10.6.6.6/0set ipcp disable req-pri-dns req-sec-dns < you probably don'want this set ipcp disable req-pri-nbns req-sec-nbns < you probably don'want this
create link static L1 modem set modem device /dev/cuaU0 set modem speed 921600 set modem script GprsDial set modem watch -cd < ignore CD set link disable chap pap set link accept chap pap set link action bundle B1 set auth authname erainternet open My modem script: GprsDial: set $dialResult "FAIL" set $ConnectionSpeed "" if $ConnectTimeout == "" set $ConnectTimeout 45print "AT+CGDCONT=1,\"ip\",\"erainternet\"\r\n" << provider specific
match "ERR" DialErrorInit wait 5 print "AT+CGATT=1\r\n" match "ERR" DialErrorInit wait 5 print "ATDT*99#\r\n" match "NO CARRIER" DialAbortNoCar match "NO DIAL" DialAbortNoDial match "BUSY" DialAbortBusy regex "CONNECT *([0-9]*).*$" DialConnect match "ERR" DialErrorInit wait $ConnectTimeout log "No response from the modem after dialing." failure
Another issues is that after the first attempt to dial the modem freezes for few seconds and I see lot of those messages: May 2 20:04:10 laptop kernel: ubsa_cfg_request: device request failed, err=USBD_ERR_STALLED (ignored)but this should go to -usb probably :)
This may be related to the driver. I am using stock ubsa (with patches for Option GTMAX) without problems.
One thing that may make things easier, can you change "link enable pap" to "link enable pap chap" ? --Marcin
signature.asc
Description: OpenPGP digital signature