At least one telco, which shall remain nameless but will probably be out
of business soon anyway, spaces RINGs by 5.1 seconds. This addresses the
problem counting rings with such a telco. Thanks Lee!
ClassModem::waitForRings(u_int n, CallType& type, CallerID& cinfo)
{
if (n > 0) {
- time_t timeout = n*5; // 5 second/ring
+ time_t timeout = n*6; // 6 second/ring
time_t start = Sys::now();
do {
- switch (atResponse(rbuf, 5000)) {
+ switch (atResponse(rbuf, 6000)) {
case AT_OTHER: // check distinctive ring
if (streq(conf.ringData, rbuf))
type = CALLTYPE_DATA;