Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!lucy.swin.edu.au!news.rmit.EDU.AU!goanna.cs.rmit.edu.au!news.apana.org.au!cantor.edge.net.au!news.teragen.com.au!news.access.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!news.radio.cz!newsbastard.radio.cz!news.radio.cz!CESspool!hammer.uoregon.edu!csulb.edu!news.sgi.com!howland.erols.net!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet From: brian@shift.lan.awfulhak.org (Brian Somers) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: User ppp chat w/extended connect response Date: 10 Mar 1997 11:23:58 GMT Organization: Awfulhak Ltd. Lines: 26 Message-ID: <5g0r0e$lbs@ui-gate.utell.co.uk> References: <df5sf5.ke.ln@dolphin.neosoft.com> Reply-To: brian@awfulhak.demon.co.uk, brian@utell.co.uk NNTP-Posting-Host: shift.utell.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Newsreader: knews 0.9.8 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:36846 In article <df5sf5.ke.ln@dolphin.neosoft.com>, conrads@neosoft.com (Conrad Sabatier) writes: > I'm trying to figure out how to modify my chat script to allow > for the extended CONNECT responses from my modem. Right now, > I have my modem (A USR Sportster 33.6) configured to use X0, > so I scan for simply "CONNECT/ARQ". I'd like to enable X4, > however, the connect speed, etc. may vary. How does one > accommodate a variable response such as this? Is it possible > to simply scan for the tail of the response (V42BIS)? > > Many thanks for any assistance. Unfortunately, you can only "expect" one string, but that string doesn't have to be the full thing. Most people use CONNECT (see the sample files) rather than CONNECT/XXX. If you want to limit the kind of connections (depending on speed or whatever), you can tell the modem to do this - can't remember the symantics but it's in the manual. FWIW, there's a "set debug Connect" if you're interrested in the full CONNECT response rather than just the fact that it connected. -- Brian <brian@awfulhak.demon.co.uk> <brian@freebsd.org> <http://www.awfulhak.demon.co.uk> Don't _EVER_ lose your sense of humour !