> My ISP has a number of different access points, each with a different
> phone number.
>
> I have successfully written a diald connect script to cycle through a
> list of phone numbers if busy, no answer or the remote modem does not
> connect. However this does not help in the case where the modem
> connection is established, control is passed to back to diald, pppd is
> started but fails to negotiate a connection. When this happens, diald
> pauses then calls the script again, which dutifully dials the first
> number in its list (which is the number to which I normally want to
> connect as it attracts a higher discount from the teleco than the
> others.)
>
> When this happens, often the problem does not affect all of the ISP's
> access points. So I would like, in these circumstances, to cycle round
> the list of access numbers rather than always restart at the
> beginning. Is there any way for diald (or pppd) to communicate with
> the connect script to tell it that the connection failed to establish
> and thus to cycle to the next number?
>
I did this by keeping state information in an external file. In my case all I
had was primary and backup. If you have lots of numbers you could just keep
an index into the list of numbers in the external file. The dial connect
scripts reads the file, increments the number, checks for rollover, then
uses that number to select the phone number to try.
Good luck,
-- cary
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]