I found the source of my problems tonight.  Verified against 0.98.1 and
0.98.2.  It has nothing to do with my modem settings.   (which were fine)

You may not want to hear this.

It was caused because I always ran diald with the '-daemon' flag for testing
when changing any configuration settings or executables.

Is this the case with any other failures?  Is this reproducible?

Lourdes

--failure--
from the command line:
[03:03:50]# diald -daemon

from the log file:
Feb 14 03:04:07 ishhara diald[2854]: failed to set modem to controlling tty:
Operation not permitted
Feb 14 03:04:07 ishhara diald[2854]: Trigger: tcp          10.0.0.1/61161
209.75.208.47/110
Feb 14 03:04:07 ishhara diald[2854]: Calling site 10.0.0.2
Feb 14 03:04:07 ishhara diald[2854]: failed to set modem to controlling tty:
Operation not permitted
Feb 14 03:04:07 ishhara diald[2854]: Diald is dieing with code 1

--better--
/sbin/ip compiled from iproute2-2.1.99-now-ss990203.tar.gz is installed but
/sbin/route is still being used (is there some additional setting I need to
configure?)

from the command line:
[03:04:08]# diald

from the log file:
Feb 14 03:21:56 ishhara kernel: CSLIP: code copyright 1989 Regents of the
University of California
Feb 14 03:21:56 ishhara kernel: SLIP: version 0.8.4-NET3.019-NEWTTY-MODULAR
(dynamic channels, max=256).
Feb 14 03:21:56 ishhara kernel: SLIP linefill/keepalive option.
Feb 14 03:22:16 ishhara diald[2865]: Trigger: tcp          10.0.0.1/61162
209.75.208.47/110
Feb 14 03:22:16 ishhara diald[2865]: Calling site 10.0.0.2
Feb 14 03:22:17 ishhara diald[2865]: Running connector (pid = 2873).
Feb 14 03:22:17 ishhara connect: Initializing Modem
Feb 14 03:22:18 ishhara connect: Dialing ###-####
Feb 14 03:22:45 ishhara connect: chat:  Feb 14 03:22:45 CONNECT
48000/ARQ/V90/LAPM/V42BIS
Feb 14 03:22:45 ishhara connect: Protocol started
Feb 14 03:22:45 ishhara diald[2865]: Connected to site 10.0.0.2
Feb 14 03:22:45 ishhara diald[2865]: Running pppd (pid = 2883).
Feb 14 03:22:46 ishhara kernel: PPP: version 2.3.3 (demand dialling)
Feb 14 03:22:46 ishhara kernel: PPP line discipline registered.
Feb 14 03:22:46 ishhara kernel: registered device ppp0
Feb 14 03:22:46 ishhara pppd[2883]: pppd 2.3.5 started by root, uid 0
Feb 14 03:22:46 ishhara pppd[2883]: Using interface ppp0
Feb 14 03:22:46 ishhara pppd[2883]: Connect: ppp0 <--> /dev/ttyS1
Feb 14 03:22:49 ishhara pppd[2883]: Remote message:
Feb 14 03:22:50 ishhara kernel: PPP BSD Compression module registered
Feb 14 03:22:50 ishhara kernel: PPP Deflate Compression module registered
Feb 14 03:22:53 ishhara pppd[2883]: local  IP address 209.214.153.3
Feb 14 03:22:53 ishhara pppd[2883]: remote IP address 209.215.210.1
Feb 14 03:22:53 ishhara diald[2865]: New addresses: local 209.214.153.3,
remote
209.215.210.1.
Feb 14 03:23:20 ishhara diald[2865]: Closing down idle link.
Feb 14 03:23:21 ishhara pppd[2883]: Terminating on signal 2.
Feb 14 03:23:21 ishhara pppd[2883]: Connection terminated.
Feb 14 03:23:21 ishhara pppd[2883]: Hangup (SIGHUP)
Feb 14 03:23:21 ishhara pppd[2883]: Exit.
Feb 14 03:23:22 ishhara diald[2865]: Nonzero exit status (7) on command
'/sbin/route add default metric 1  netmask 0.0.0.0 dev sl0'
Feb 14 03:23:22 ishhara diald[2865]: Nonzero exit status (7) on command
'/sbin/route add default metric 1  netmask 0.0.0.0 dev sl0'
Feb 14 03:23:23 ishhara diald[2865]: Disconnected. Call duration 38 seconds.
Feb 14 03:23:23 ishhara diald[2865]: IP transmitted 128 bytes and received
88 bytes.
Feb 14 03:23:24 ishhara diald[2865]: Delaying 10 seconds before clear to
dial.

--/etc/diald.conf--
include /usr/lib/diald/standard.filter
device /dev/ttyS1
speed 115200
lock
mode ppp
dynamic
local 10.0.0.1
remote 10.0.0.2
pppd-options name ####### :
defaultroute
modem
crtscts
accounting-log /var/log/diald.log
connect /etc/diald/connect
redial-timeout 10
fifo /etc/diald/diald.ctl

--/etc/diald/connect--
#!/bin/sh
# Copyright (c) 1996, Eric Schenk.
# chopped to bits since I use PAP.

MODEM_INIT="AT&F1M0"
PHONE_NUMBER="###-####"

function message () {
[ $FIFO ] && echo "message $*" >$FIFO
logger -p local2.info -t connect "$*"
}

message "Initializing Modem"
chat TIMEOUT 5 "" $MODEM_INIT TIMEOUT 45 OK ""
if [ $? != 0 ]; then
    message "Failed to initialize modem"
    exit 1
fi

>/var/log/diald.connect

message "Dialing $PHONE_NUMBER"
chat -r /var/log/diald.connect \
        REPORT CONNECT \
        TIMEOUT 45 \
        ABORT "NO CARRIER" \
        ABORT BUSY \
        ABORT "NO DIALTONE" \
        ABORT ERROR \
        "" ATDT$PHONE_NUMBER \
        CONNECT ""
case $? in
   0) message "$(cat /var/log/diald.connect)";;
   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

message "Protocol started"
--


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

Reply via email to