> With that, I don't know how I can configure diald.
> If I use connect `/usr/sbin/chat -v /etc/ppp/chatscript` It doesn't work.
I use PAP to authenticate. Here's the important bits of my diald.conf:
local 194.222.88.187
remote 158.152.1.222
# mode slip
mode ppp
defaultroute
connect /etc/demon-connect
# mtu 576
pppd-options debug user myusername
In my connect script I just dial up and exit when the phone is answered using a
cut-down version of the script included with diald. Here's the highlights:
# The initialization string for your modem
# MODEM_INIT="ATZL0&C1&D2%C0"
MODEM_INIT="ATZ"
MODEM_INIT2="ATM0L0&C1&D2%C0W2"
# The phone number to dial
# PHONE_NUMBER="08452120666" # Scottish Telecom
# PHONE_NUMBER="01491509666" # Local Energis access
PHONE_NUMBER="08450798666" # Energis, good for k56
# The chat command. chat -v logs the chatting to the syslog.
CHAT="chat -v"
# CHAT="chat"
# 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 "\c"
if [ $? != 0 ]; then
message "Failed to initialize modem"
exit 1
fi
$CHAT TIMEOUT 5 "" $MODEM_INIT2 TIMEOUT 45 OK "\c"
if [ $? != 0 ]; then
message "Failed to initialize modem(2)"
exit 1
fi
# Dial the remote system.
message "Dialing system"
$CHAT \
TIMEOUT 45 \
ABORT "NO CARRIER" \
ABORT BUSY \
ABORT "NO DIALTONE" \
ABORT ERROR \
"" ATDT$PHONE_NUMBER \
CONNECT "\c"
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
# Success!
message "Protocol started"
Hope this helps. I posted a more comprehensive summary of my setup to the list
a week or two ago if you need more detail.
> Thank you in advance for your help :-)
> (and sorry for my bad english...)
Well, it's MILES better than my French :-) For which I humbly apologise.
---
Jim Hague - [EMAIL PROTECTED] (Work), [EMAIL PROTECTED] (Play)
Never trust a computer you can't lift.
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]