PPP / Chat wows (sec: unclas)

Frank Ranner Frank.Ranner at defence.gov.au
Thu Jan 9 12:15:44 EST 2003


Steven Curren wrote:
> 
> Dear all,
> 
> I am hoping that someone on this list may be able to provide some assistance
> with diald.
> 
> I am using mandrake 8.0 and trying to setup a ppp dialup router/gateway.
> However, I seem unable to get the chat script working correctly. I seems as
> though the expect/send pairs are sending invalid characters.
> 
> Have setup the files as below and running (as root) "pppd call blue_sky",
> but on each case of sending something to the modem (as seen in "tail
> /var/log/messages" below) an alarm is generated. I note that the modem Data
> Terminal Ready lights up, but as diald errors out before the dial string is
> encountered the modem does not dial.
> 
> I have tested the modem with minicom on /dev/ttyS2 and pasted the modem
> sequences (ie ATZ) and on each occassion the modem responds with OK. But
> when calling from chat script it errors out.
> 
> I know that the modem functions correctly with linux, having used it with
> smoothwall.
> 
> Any advice or assistance would be very welcome and appreciated.
> 
> Regards,
> 
> Steve Curren
> 
> Below are the file / log extracts
> 
> /etc/ppp/peers/blue_sky:
>  /dev/ttyS2 115200 crtscts
>  connect '/usr/sbin/chat -v -s -f /etc/ppp/chat-blue_sky'
>  noauth user scurren
> 
> /etc/ppp/chat-blue_sky:
>  TIMEOUT 20
>  'ABORT' 'BUSY'
>  'ABORT' 'ERROR'
>  'ABORT' 'NO CARRIER'
>  'ABORT' 'NO DIALTONE'
>  'ABORT' 'Invalid Login'
>  'ABORT' 'Login Incorrect'
>  REPORT CONNECT
>  "" "AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0"
>  OK ATZ
>  OK ATL0M0
>  OK ATD0198308009
>  CONNECT
> 
> tail /var/log/messages:
> Jan  9 11:40:59 curtin chat[2430]: abort on (Invalid Login)
> Jan  9 11:40:59 curtin chat[2430]: abort on (Login Incorrect)
> Jan  9 11:40:59 curtin chat[2430]: report (CONNECT)
> Jan  9 11:40:59 curtin chat[2430]: send (AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0^M)
> Jan  9 11:40:59 curtin chat[2430]: expect (OK)
> Jan  9 11:41:19 curtin chat[2430]: alarm
> Jan  9 11:41:19 curtin chat[2430]: Failed
> Jan  9 11:41:19 curtin pppd[2429]: Connect script failed
> Jan  9 11:41:20 curtin pppd[2429]: Exit.
> 
> Minicom session (dialed without phone line connected):
>   Welcome to minicom 2.00.0
> 
>  OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n
>  Compiled on Jul 27 2002, 17:54:50.
> 
>  Press CTRL-A Z for help on special keys
> 
>  AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0
>  OK
>  ATZ
>  OK
>  ATL0M0
>  OK
>  ATD0198308009
>  NO DIALTONE

Why not try minicom with the line connected and manually go 
through the entire login process. You should be able to get 
to where the remote end sends you the ppp stream. If not 
you will at least be able to see any errors coming up.

regards
-- 
Frank Ranner                             frank.ranner at defence.gov.au
--------------------------------------------------------------------
xenaphobia: The fear of being beaten to a pulp by
            a leather-clad, New Zealand woman.



More information about the linux mailing list