Add dialmax 0 to pppdcapiplugin
dialmax 0 allows infinite dial attemps. Patch taken from Debian sid - Thanks Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
This commit is contained in:
parent
e915cb413b
commit
b8ba81cc49
|
@ -304,6 +304,10 @@ On an outcoming call the remote party will reject the call and callback.
|
|||
.B dialmax \fI<times>
|
||||
Maximum number of times the list of phone numbers is tried before giving up.
|
||||
Default value is 4.
|
||||
.br
|
||||
If dialmax is set to 0,
|
||||
the list is retried infinitely until a connection is made
|
||||
(or the process is stopped).
|
||||
|
||||
.TP
|
||||
.B dialtimeout \fI<seconds>
|
||||
|
|
|
@ -1807,7 +1807,7 @@ static void makeleasedline(void)
|
|||
if (status != EXIT_OK)
|
||||
die(status);
|
||||
|
||||
} while (++retry < opt_dialmax);
|
||||
} while ((++retry < opt_dialmax) || (opt_dialmax == 0));
|
||||
|
||||
connected:
|
||||
if (conn_isconnected(cp)) {
|
||||
|
@ -1874,7 +1874,7 @@ again:
|
|||
if (status != EXIT_OK)
|
||||
die(status);
|
||||
}
|
||||
} while (++retry < opt_dialmax);
|
||||
} while ((++retry < opt_dialmax) || (opt_dialmax == 0));
|
||||
|
||||
connected:
|
||||
if (conn_isconnected(cp)) {
|
||||
|
@ -1964,7 +1964,7 @@ again:
|
|||
info("capiplugin: callback failed (no call)");
|
||||
}
|
||||
}
|
||||
} while (++retry < opt_dialmax);
|
||||
} while ((++retry < opt_dialmax) || (opt_dialmax == 0));
|
||||
|
||||
fatal("capiplugin: callback failed (no call)");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue