LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need help with wvdial.config details (https://www.linuxquestions.org/questions/linux-software-2/need-help-with-wvdial-config-details-638809/)

khaos83 04-30-2008 01:24 AM

Need help with wvdial.config details
 
I have a dialup modem internet connection up and running well.
The problem now is I want to add some options into the wvdial.config file but I can't seem to make it work.



I added in the stuff in red.
What I wanted to achieve is:
1) To stop calling after 3 tries
2) When it discounnts from the other side, it will not try to reconnect
Code:

[Dialer Defaults]
Modem = /dev/ttyS2
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0
; Phone = <Target Phone Number>
; Username = <Your Login Name>
; Password = <Your Password>
Phone = 123456
Username = myusername
Password = mypassword
Dial Attempts = 3
Abort on Busy = on
Abort on No Dialtone = on
Auto Reconnect = off
Carrier Check = no

But wvdial just keep on trying to connect if it fails. Then after 3 times, it will just wait and prompt "WAITING" forever.
Where have I gone wrong?
Then if the wvdial tries to dail when the phone line is off, it will just be "WAITING" again. When I cancel it, plug in the phone line and try again, it will still be waiting ... In that case I have to switch off the modem, try to call, fail, power on and try again to be successful.

khaos83 04-30-2008 03:28 AM

ok ... I know why it didnt work.
Im using a old version of wvdial which does not recognise those options.
Apologise for the waste of disk space and bandwidth ...
:p

khaos83 04-30-2008 04:32 AM

ok ... this is bad

I have a problem now, I have another problem with the newer version of wvdial. This time I my wvdial.conf is:

Code:

[Dialer Defaults]
Modem = /dev/ttyS2
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0
ISDN = 0
; Phone = <Target Phone Number>
; Username = <Your Login Name>
; Password = <Your Password>
Phone = 123456
Username = myusername
Password = mypassword
Dial Attempts = 3

I have added in the red.
I only want it to retry 3 times.
I made it call my phone and i hang up the call. It will call again but this time it is not able to call out. Giving me a "Timed out while dialing". It keep trying and same message.
Then I compared the new and the old wvdial.conf. S11=55 was not in the new conf. I added in to try if it works but it doesn't.

Any idea why it can't redial using the newer version ?

khaos83 05-01-2008 10:20 PM

nevermind. I just put Dial Attempts = 1. And restart wvdial everything it fails.


All times are GMT -5. The time now is 02:06 AM.