Link to home
Start Free TrialLog in
Avatar of pmalinow
pmalinow

asked on

diald keeps dialing...

I've set up diald from the rpm diald-0_16_5-201_i386.rpm on a RH 5.0 system. It seems to work just fine except after the
connection is droped it will immediately dial back out and
continues to do this.  If I use the diald command "diald-off" and then issue the command "diald-on".  The system will not dial out until it specifically sees a packet to force a dial-out, but once it does, it continually dials
out and connects.  Do you have any ideas how I might get this to stop occurring?  Thanks for your time in advance.
Avatar of pmalinow
pmalinow

ASKER

Edited text of question
you need to move diald.conf to /etc/diald and remove connect from /etc/diald
Can you post your diald.conf  there are some setings that you need to add or change to stop diald form redialing
If I remove the connect script from /etc/diald then where does it
get the phone number and login information it needs to dial and
connect.  I have not made any modifications to the stock distri-
dution except of course to the connect script inputting the phone
number of the machine I am trying to reach and the login info.
I recently discovered that the remote machine being dialed is the
one terminating the connection after not seeing any IP traffic.
Therefore I am now looking into making the disconnect time
shorter on the diald machine.

As requested I am inclulding a copy of my diald.conf file:

device /dev/cua1
speed 38400
lock
mode ppp dynamic
local 10.0.0.1
remote 10.0.0.2
pppd-options name anappp :  up-delay 5
defaultroute
modem
crtscts
connect /etc/diald/connect
redial-timeout 10
fifo /etc/diald/diald.ctl


First step is to resolve ppp problem use minicom to logon to your ISP then write down all steps you need to get to internet like password login any options. I had the same problem  and my ISP changeg from host login  to login and your script is incorrect check this firs
dump diald. Try using pppd and chat.. I don't know the details of your isp, but assuming it doesn't use pap/chap the following should work..

Make a file with the following in it, and do a chmod +x filename to make it executable

pppd /dev/modem 38400 connect "chat -f dialerscriptfilename" accept-ipcp-local accept-ipcp-remote crtscts modem

then, you need a script to dial.. in this example, call it dialerscriptfilename and put the following in it..

""
ATZ
OK
ATDT[ISP PHONE NUMBER]
CONNECT

if your isp uses pap or chap, just ask.
I could start ranting about how redhat makes linux users too dumb to figure out things like this on their own, but I wont. ;)
btw.. to disconnect, just press the hangup/voice/data/whatever button, or make a script that kills pppd.
for example, you could do this:

$echo "killall pppd" >> disconnect
$chmod +x disconnect

then, you just have to run ./disconnect to take down the link.
ASKER CERTIFIED SOLUTION
Avatar of brunovan
brunovan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial