Check your serial port. Is ttyS1 really where your modem is?
Josef Hartmann wrote:
>
> Hi,
>
> I would like to use diald on my RH5.2 system, kernel 2.2.6. The connect
> script basicly is the one of the diald distribution, I just changed the
> number.
>
> If I run ifup ppp0 it works - I get connection and internet access. Is
> there any possibility to use this mechanism with diald???
>
> Syslog sends following error:
>
> Apr 24 12:16:19 rh52 diald[969]: Proxy device established on interface tap0
> Apr 24 12:16:19 rh52 diald[969]: Diald initial setup completed.
> Apr 24 12:16:21 rh52 diald[969]: Trigger: udp 192.168.2.1/1024
> 198.32.64.12/53
> Apr 24 12:16:21 rh52 diald[969]: Calling site 192.168.2.2
> Apr 24 12:16:22 rh52 connect: Initializing Modem
> Apr 24 12:16:22 rh52 chat[980]: Can't get terminal parameters: Invalid
> argument
> Apr 24 12:16:22 rh52 connect: Failed to initialize modem
> Apr 24 12:16:22 rh52 diald[969]: Connect script failed.
> Apr 24 12:16:22 rh52 diald[969]: Closing /dev/ttyS1
> Apr 24 12:16:23 rh52 diald[969]: Delaying 30 seconds before clear to dial.
> Apr 24 12:16:53 rh52 diald[969]: Calling site 192.168.2.2
> Apr 24 12:16:54 rh52 connect: Initializing Modem
> Apr 24 12:16:54 rh52 chat[985]: Can't get terminal parameters: Invalid
> argument
> Apr 24 12:16:54 rh52 connect: Failed to initialize modem
> Apr 24 12:16:54 rh52 diald[969]: Connect script failed.
> Apr 24 12:16:54 rh52 diald[969]: Closing /dev/ttyS1
> Apr 24 12:16:55 rh52 diald[969]: Delaying 30 seconds before clear to dial.
>
> /etc/diald.conf
>
> mode ppp
> debug 31
> # connect "/usr/sbin/chat -f /etc/sysconfig/network-scripts/chat-ppp0"
> # connect "/usr/sbin/chat -f /etc/sysconfig/network-scripts/chat-ppp1"
> connect "/opt/diald/lib/connect"
> device /dev/ttyS1
> speed 115200
> modem
> lock
> crtscts
> local 192.168.2.1
> remote 192.168.2.2
> mtu 576
> dynamic
> defaultroute
> include /opt/diald/lib/diald.defs
> include /opt/diald/lib/standard.filter
>
> # --end /etc/diald.conf
>
> /opt/diald/lib/connect:
>
> #!/bin/sh
> # Copyright (c) 1996, Eric Schenk.
> #
> # This script is intended to give an example of a connection script that
> # uses the "message" facility of diald to communicate progress through
> # the dialing process to a diald monitoring program such as dctrl or
> diald-top.
> # It also reports progress to the system logs. This can be useful if you
> # are seeing failed attempts to connect and you want to know when and why
> # they are failing.
> #
> # This script requires the use of chat-1.9 or greater for full
> # functionality. It should work with older versions of chat,
> # but it will not be able to report the reason for a connection failure.
>
> # Configuration parameters
>
> # The initialization string for your modem
>
> MODEM_INIT="ATZ&C1&D2%C0"
> # MODEM_INIT="ATZ"
>
> # The phone number to dial
> PHONE_NUMBER="0101901929"
>
> # The chat sequence to recognize that the remote system
> # is asking for your user name.
> USER_CHAT_SEQ="name:--name:--name:--name:--name:--name:--name:"
>
> # The string to send in response to the request for your user name.
> USER_NAME="blubber"
>
> # The chat sequence to recongnize that the remote system
> # is asking for your password.
> PASSWD_CHAT_SEQ="ssword:"
>
> # The string to send in response to the request for your password.
> PASSWORD="blubberle"
>
> # The prompt the remote system will give once you are logged in
> # If you do not define this then the script will assume that
> # there is no command to be issued to start up the remote protocol.
> PROMPT="annex:"
> # The command to issue to start up the remote protocol
> PROTOCOL_START="ppp"
>
> # The string to wait for to see that the protocol on the remote
> # end started OK. If this is empty then no check will be performed.
> START_ACK="Switching to PPP."
>
> # Pass a message on to diald and the system logs.
> function message () {
> [ $FIFO ] && echo "message $*" >$FIFO
> logger -p local2.info -t connect "$*"
> }
>
> # Initialize the modem. Usually this just resets it.
> message "Initializing Modem"
> chat TIMEOUT 5 "" $MODEM_INIT TIMEOUT 45 OK ""
> if [ $? != 0 ]; then
> message "Failed to initialize modem"
> exit 1
> fi
>
> # Dial the remote system.
>
> message "Dialing system"
> chat \
> TIMEOUT 45 \
> ABORT "NO CARRIER" \
> ABORT BUSY \
> ABORT "NO DIALTONE" \
> ABORT ERROR \
> "" AX3DT0,$PHONE_NUMBER \
> CONNECT ""
> case $? in
> 0) message Connected;;
> 1) message "Chat Error"; exit 1;;
> 2) message "Chat Script Error"; exit 1;;
> 3) message "Chat Timeout"; exit 1;;
> 4) message "No Carrier"; exit 1;;
> 5) message "Busy"; exit 1;;
> 6) message "No DialTone"; exit 1;;
> 7) message "Modem Error"; exit 1;;
> *)
> esac
>
> # We're connected try to log in.
> message "Loggin in"
> chat \
> TIMEOUT 5 \
> $USER_CHAT_SEQ \\q$USER_NAME \
> TIMEOUT 45 \
> $PASSWD_CHAT_SEQ $PASSWORD
> if [ $? != 0 ]; then
> message "Failed to log in"
> exit 1
> fi
>
> # We logged in, try to start up the protocol (provided that the
> # user has specified how to do this)
>
> if [ $PROMPT ]; then
> message "Starting Comm Protocol"
> chat TIMEOUT 15 $PROMPT $PROTOCOL_START
> if [ $? != 0 ]; then
> message "Prompt not received"
> exit 1
> fi
> fi
>
> if [ $START_ACK ]; then
> chat TIMEOUT 15 $START_ACK ""
> if [ $? != 0 ]; then
> message "Failed to start Protocol"
> exit 1
> fi
> fi
>
> # Success!
> message "Protocol started"
>
> --
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com http://archive.redhat.com
> To unsubscribe: mail [EMAIL PROTECTED] with
> "unsubscribe" as the Subject.
--
Edison Information Technologies
P.O. Box 554
Milan, OH 44846-0554
419.499.7040
www.EdisonInfo.com
[EMAIL PROTECTED]
--
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]