Thanks to those who helped with my install problem.
I've built the thing, and it is running but I have a connection
problem. Can anyone help?
I have a chat script that works fine with pppd. With diald
it seems to do a lot right, but fails to connect properly.
While pppd does the chat stuff and then reports that it has
established a serial connection, diald goes on to try another
chat sequence.
I've been looking at the logs - here's how the relevant bits
of the pppd and diald versions differ:
straight pppd:
Sep 14 22:05:51 www chat[2053]: login: <my login>^M
Sep 14 22:05:51 www chat[2053]: Password:
Sep 14 22:05:51 www chat[2053]: -- got it
Sep 14 22:05:51 www chat[2053]: send (<my password>^M)
Sep 14 22:05:51 www chat[2053]: timeout set to 5 seconds
Sep 14 22:05:51 www chat[2053]: expect (~)
Sep 14 22:05:51 www chat[2053]: ^M
Sep 14 22:05:51 www chat[2053]: Entering PPP mode.^M
Sep 14 22:05:51 www chat[2053]: Async interface address is unnumbered (FastEthernet0)^M
Sep 14 22:05:51 www chat[2053]: Your IP address is 62.136.148.254. MTU is 1500 bytes^M
Sep 14 22:05:51 www chat[2053]: Header compression will match your system.^M
Sep 14 22:05:51 www chat[2053]: ^M
Sep 14 22:05:53 www chat[2053]: ~
Sep 14 22:05:53 www chat[2053]: -- got it
Sep 14 22:05:53 www chat[2053]: send (^M)
Sep 14 22:05:53 www pppd[2052]: Serial connection established.
Sep 14 22:05:54 www pppd[2052]: Using interface ppp0
Sep 14 22:05:54 www pppd[2052]: Connect: ppp0 <--> /dev/modem
Sep 14 22:05:56 www pppd[2052]: not replacing existing default route to eth0
[128.100.255.254]
Sep 14 22:05:56 www pppd[2052]: local IP address 62.136.148.254
Sep 14 22:05:56 www pppd[2052]: remote IP address 195.92.69.206
and now with diald:
Sep 14 22:07:06 www chat[2110]: login: <my login>^M
Sep 14 22:07:06 www chat[2110]: Password:
Sep 14 22:07:06 www chat[2110]: -- got it
Sep 14 22:07:06 www chat[2110]: send (<my password>^M)
Sep 14 22:07:06 www chat[2110]: timeout set to 5 seconds
Sep 14 22:07:06 www chat[2110]: expect (~)
Sep 14 22:07:06 www chat[2110]: ^M
Sep 14 22:07:06 www chat[2110]: Entering PPP mode.^M
Sep 14 22:07:06 www chat[2110]: Async interface address is unnumbered (FastEthernet0)^M
Sep 14 22:07:06 www chat[2110]: Your IP address is 62.136.130.38. MTU is 1500 bytes^M
Sep 14 22:07:06 www chat[2110]: Header compression will match your system.^M
Sep 14 22:07:06 www chat[2110]: ^M
Sep 14 22:07:08 www chat[2110]: ~
Sep 14 22:07:08 www chat[2110]: -- got it
Sep 14 22:07:08 www chat[2110]: send (^M)
Sep 14 22:07:08 www diald[2098]: Running pppd (pid = 2111).
Sep 14 22:07:08 www pppd[2111]: pppd 2.3.5 started by root, uid 0
Sep 14 22:07:08 www chat[2112]: abort on (BUSY)
Sep 14 22:07:08 www chat[2112]: abort on (NO CARRIER)
Sep 14 22:07:08 www chat[2112]: abort on (VOICE)
Sep 14 22:07:08 www chat[2112]: abort on (NO DIALTONE)
Sep 14 22:07:08 www chat[2112]: abort on (NO ANSWER)
Sep 14 22:07:08 www chat[2112]: send (ATZ^M)
Sep 14 22:07:08 www chat[2112]: expect (OK)
Sep 14 22:07:12 www chat[2112]: ~^?}#@!}!v} )}"}&} }*} }
}%}&x[i9}'}"}(}"}1}$}%t}3}1}!FREE-MULTILINK}0W~~^?}#@!}!w
Sep 14 22:07:14 www chat[2112]: } )}"}&} }*} }
}%}&x[i9}'}"}(}"}1}$}%t}3}1}!FREE-MULTILINK*Y~~^?}#@!}!x} )}"}&} }
Sep 14 22:07:16 www chat[2112]: *} }
}%}&x[i9}'}"}(}"}1}$}%t}3}1}!FREE-MULTILINK\}"~~^?}#@!}!y} )}"}&} }*} } }%}&
Sep 14 22:07:18 www chat[2112]: x[i9}'}"}(}"}1}$}%t}3}1}!FREE-MULTILINKf},~~^?}#@!}!z}
)}"}&} }*} } }%}&x[i9}'}"}
... and so on until ...
Sep 14 22:32:22 www pppd[2388]: Connect script failed
Sep 14 22:32:22 www chat[2391]: NO CARRIER
Sep 14 22:32:22 www chat[2391]: -- failed
Sep 14 22:32:22 www chat[2391]: Failed (NO CARRIER)
Sep 14 22:32:23 www pppd[2388]: Exit.
So why does the diald session proceed with the second chat session?
What is wrong with that first connection that it feels the
need to try it again?
sigh.
tommy
P.S. FWIW, here's my chat script:
'ABORT' 'BUSY'
'ABORT' 'ERROR'
'ABORT' 'NO CARRIER'
'ABORT' 'NO DIALTONE'
'ABORT' 'Invalid Login'
'ABORT' 'Login incorrect'
'' 'ATZ'
'OK' 'ATDT<number>'
'CONNECT' ''
'ogin:' '<id>'
'ord:' '<pw>'
'TIMEOUT' '5'
'~--' ''
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]