Excuse me if this is FAQ but I haven't been able to find it in the FAQ
or on dejanews or a few other places. I just started trying to get
diald working for me.

The problem seems to be that the chat script I am using to connect
isn't being handed a tty when it is asked to initiate the connection
on behalf of diald.

When I dial in normally, I use a script called ppp-on and it calls a
chat script ppp-on-dialer. These are very simple modifications of the
examples scripts that come with the ppp package. I've been using this
pair of scripts for several months and they have worked just fine.

However when I use diald chat fails with this error mesage:
Aug 14 06:20:14 localhost chat[1562]: Can't get terminal parameters: Invalid argument
Aug 14 06:20:14 localhost diald[1555]: Connect script failed.

Any ideas?

Here is the relevant info:
RedHat 6.0
ppp 2.3.7-2
diald 0.99.1

Chat script (note I am using pap or chap to authenticate):
#!/bin/sh

# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.

exec /usr/sbin/chat -v                                          \
        TIMEOUT         3                               \
        ABORT           '\nBUSY\r'                      \
        ABORT           '\nNO ANSWER\r'                 \
        ABORT           '\nRINGING\r\n\r\nRINGING\r'    \
        ''              \rAT                            \
        'OK-+++\c-OK'   ATH0                            \
        TIMEOUT         50                              \
        OK              ATS71=1                         \
        OK              ATS80=1                         \
        OK              ATD457-0147                     \
        'CONNECT 115200'        '\r'

diald.conf:
mode ppp
connect "/usr/sbin/chat -v -f /usr/local/bin/ppp-on-dialer-isdn"
device /dev/ttyS0
speed 115200
modem
lock
crtscts
local 192.168.0.1
remote 192.168.0.2
dynamic
defaultroute
include /usr/lib/diald/standard.filter

-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to