[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dialback
> Does anyone have examples of dialback scripts ?
Do you mean Callback?
If you do I use pppd + chat for that, Here how it works for me:
first a script to call pppd + chat: (let's say dialin.csh)
-----------
#!/bin/csh
/usr/sbin/pppd connect '/usr/sbin/chat -v -f /etc/ppp/chat_for_dialin.csh'
tail -f /var/log/messages
-----------
note I use /etc/ppp/options to pass options automatically, mine is:
-----------
-d # Debug mode
/dev/modem # Modem port
115200 # Modem speed
crtscts # Modem hardware flow control
#-vj # Temporary override "Do not use Van Jackobson compression
mru 1500 # Maximun Receive unit
lock # Force UUCP-style locking
netmask 255.255.255.0 # Network mask for interface ppp0
domain YOURDOMAIN # Our DNS domain
defaultroute # Use remote host as default router
asyncmap 0x8F0FFF00
-----------
Your milegue may vary, so
then the chat script as you saw it in
connect '/usr/sbin/chat -v -f /etc/ppp/chat_for_dialin.csh':
-----------
ABORT "NO DIALTONE" ABORT BUSY ABORT "NO ANSWER" ABORT RINGING
"" ATZ OK "AT L0 M0 &C0 &D2 &K3 \\G1 S0=0" OK ATDTTHENUMBERYOUDIAL
"User ID:" YOURUSERNAME assword: YOURPASSWD
TIMEOUT 55 ABORT VOICE RING "AT &C1 A" "CONNECT" "\c" "" "\d\d\d\d\d"
TIMEOUT 15 username> YOURUSERNAME yplex> "set port ppp enable"
-----------
Replace THENUMBERYOUDIAL YOURUSERNAME YOURPASSWD with proper values
Again your script might and will be different
As you will see I add tail -f /var/log/messages
at the end of the csh script to see all the logs in real time
Play with logs and tune it to work for you...
Hope this helps...
______________________________________________________________________
Stas Bekman mailto:sbekman@iil.intel.com [just another webmaster]
Home Page: http://www.eprotect.com/stas
A must visit: http://www.eprotect.com/stas/TULARC (Java,CGI,PC,Linux)
Linux-il Home: http://www.linux.org.il/
- References:
- dialback
- From: Erez Doron <erez@savan.com>