Recently diald start failing for no reason I can understand.  It does
show some alarms but it isn't very helpful.

Please let me know if there is a way to make diald more verbose.

Thanks

Sean


Here is my diald.options

device /dev/ttyS1
accounting-log /var/log/diald.log
fifo /var/run/diald.fifo
mode ppp
local 192.168.0.3
remote 38.1.1.1 
netmask 255.255.255.0
dynamic
two-way
reroute
defaultroute
ip-up /etc/diald/ip-up
ip-down /etc/diald/ip-down
connect "/etc/diald/connect"
lock
modem
crtscts
connect-timeout 90
dial-fail-limit 100
died-retry-count 100
include /etc/diald/standard.filter
speed 115200
redial-timeout 5
 

And my connect

DEBUG=-v
MODEM_INIT1="ATZ"
MODEM_INIT2='ATQ0V1E1S0=0&C1&D2S11=55+FCLASS=0'
PHONE_NUMBER="8160247"
CALLBACK=0
AUTHENTIFY=1
USER_CHAT_SEQ="ogin:--ogin:--ogin:--ogin:--ogin:--ogin:--ogin:"
USER_NAME="*********"           <---Username removed
PASSWD_CHAT_SEQ="assword:"
PASSWORD="********"             <---Password removed
START_ACK="Entering PPP"
message () {
    if [ "$DEBUG" != "" ]
    then
        [ "$FIFO" != "" ] && echo "message $*" >$FIFO
        logger -p local2.info -t connect "$*"
    fi
}
message "Initializing Modem"
chat $DEBUG TIMEOUT 10 "" "$MODEM_INIT1" TIMEOUT 45 OK "$MODEM_INIT2" OK
""
if [ $? != 0 ]; then
    message "Failed to initialize modem"
    exit 1
fi
message "Dialing system"
chat $DEBUG \
        TIMEOUT 45 \
        ABORT "NO CARRIER" \
        ABORT BUSY \
        ABORT "NO DIALTONE" \
        ABORT ERROR \
        "" "ATDT$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
if [ "$AUTHENTIFY" == 0 ]; then
    exit 0
fi
message "Logging in"
chat $DEBUG \
        TIMEOUT 5 \
        "$USER_CHAT_SEQ" "\\q$USER_NAME" \
        TIMEOUT 45 \
        "$PASSWD_CHAT_SEQ" "\\q$PASSWORD" 
if [ $? != 0 ]; then
    message "Failed to log in"
    exit 1
fi
if [ "$CALLBACK" != 0 ]; then
    message "Waiting for callback"
    chat $DEBUG \
        TIMEOUT 20 \
        RING ATA
    if [ $? != 0]; then
        message "Remote system did not call back"
        exit 1
    fi
fi
if [ "$PROMPT" != "" ]; then
    message "Starting Comm Protocol"
    chat $DEBUG TIMEOUT 15 "$PROMPT" "$PROTOCOL_START"
    if [ $? != 0 ]; then
        message "Prompt not received"
        exit 1
    fi
fi
if [ "$START_ACK" != "" ]; then
    chat $DEBUG TIMEOUT 15 "$START_ACK" ""
    if [ $? != 0 ]; then
        message "Failed to start Protocol"
        exit 1
    fi
fi




Apr  9 00:02:59 feynman diald[139]: Connect script failed.
Apr  9 00:03:00 feynman diald[139]: Delaying 5 seconds before clear to
dial.
Apr  9 00:03:06 feynman diald[139]: Running connect (pid = 364).
Apr  9 00:03:06 feynman connect: Initializing Modem
Apr  9 00:03:06 feynman chat[366]: timeout set to 10 seconds
Apr  9 00:03:06 feynman chat[366]: send (ATZ^M)
Apr  9 00:03:06 feynman chat[366]: timeout set to 45 seconds
Apr  9 00:03:06 feynman chat[366]: expect (OK)
Apr  9 00:03:06 feynman chat[366]: ATZ^M^M
Apr  9 00:03:06 feynman chat[366]: OK
Apr  9 00:03:06 feynman chat[366]:  -- got it 
Apr  9 00:03:06 feynman chat[366]: send
(ATQ0V1E1S0=0&C1&D2S11=55+FCLASS=0^M)
Apr  9 00:03:07 feynman chat[366]: expect (OK)
Apr  9 00:03:07 feynman chat[366]: ^M
Apr  9 00:03:07 feynman chat[366]: ATQ0V1E1S0=0&C1&D2S11=55+FCLASS=0^M^M
Apr  9 00:03:07 feynman chat[366]: OK
Apr  9 00:03:07 feynman chat[366]:  -- got it 
Apr  9 00:03:07 feynman chat[366]: send (^M)
Apr  9 00:03:07 feynman connect: Dialing system
Apr  9 00:03:07 feynman chat[368]: timeout set to 45 seconds
Apr  9 00:03:07 feynman chat[368]: abort on (NO CARRIER)
Apr  9 00:03:07 feynman chat[368]: abort on (BUSY)
Apr  9 00:03:07 feynman chat[368]: abort on (NO DIALTONE)
Apr  9 00:03:07 feynman chat[368]: abort on (ERROR)
Apr  9 00:03:07 feynman chat[368]: send (ATDT8160247^M)
Apr  9 00:03:07 feynman chat[368]: expect (CONNECT)
Apr  9 00:03:07 feynman chat[368]: ^M
Apr  9 00:03:32 feynman chat[368]: ^MATDT8160247^M^M
Apr  9 00:03:32 feynman chat[368]: CARRIER 46000^M
Apr  9 00:03:32 feynman chat[368]: ^M
Apr  9 00:03:32 feynman chat[368]: PROTOCOL: LAP-M^M
Apr  9 00:03:32 feynman chat[368]: ^M
Apr  9 00:03:32 feynman chat[368]: CONNECT
Apr  9 00:03:32 feynman chat[368]:  -- got it 
Apr  9 00:03:32 feynman chat[368]: send (^M)
Apr  9 00:03:32 feynman connect: Connected
Apr  9 00:03:33 feynman connect: Logging in
Apr  9 00:03:33 feynman chat[371]: timeout set to 5 seconds
Apr  9 00:03:33 feynman chat[371]: expect (ogin:)
Apr  9 00:03:33 feynman chat[371]:  115200^M
Apr  9 00:03:38 feynman chat[371]: ^M
Apr  9 00:03:38 feynman chat[371]: 
Apr  9 00:03:38 feynman last message repeated 15 times
Apr  9 00:03:38 feynman chat[371]: alarm                                <---What is 
this? How can I
find out more
Apr  9 00:03:38 feynman chat[371]: warning: alarm synchronization
problem <---This too?
Apr  9 00:03:38 feynman chat[371]: send (^M)
Apr  9 00:03:38 feynman chat[371]: expect (ogin:)
Apr  9 00:03:38 feynman chat[371]: 
Apr  9 00:03:38 feynman last message repeated 7 times
Apr  9 00:03:38 feynman chat[371]: Portland multi TNT .114^M
Apr  9 00:03:38 feynman chat[371]: ^M
Apr  9 00:03:38 feynman chat[371]: ^M
Apr  9 00:03:38 feynman chat[371]: Login:
Apr  9 00:03:38 feynman chat[371]:  -- got it 
Apr  9 00:03:38 feynman chat[371]: send (??????)
Apr  9 00:03:38 feynman chat[371]: timeout set to 45 seconds
Apr  9 00:03:38 feynman chat[371]: expect (assword:)
Apr  9 00:03:38 feynman chat[371]: Failed
Apr  9 00:03:38 feynman connect: Failed to log in
Apr  9 00:03:38 feynman diald[139]: Connect script failed.
Apr  9 00:03:39 feynman diald[139]: Delaying 5 seconds before clear to
dial.
Apr  9 00:03:46 feynman diald[139]: Running connect (pid = 373).
-- 
There are bugs and then there are bugs.  And then there are bugs.
-- Karl Lehenbauer

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

Reply via email to