]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
[Bug 343] increase RING timeout to 6 seconds
authorDarren Nickerson <darren.nickerson@ifax.com>
Tue, 27 Aug 2002 23:19:21 +0000 (23:19 +0000)
committerDarren Nickerson <darren.nickerson@ifax.com>
Tue, 27 Aug 2002 23:19:21 +0000 (23:19 +0000)
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!

faxd/ClassModem.c++

index 4e2e623b6a6dea95d26fbf5794c540ef05e26f91..7dbe943e77400d560dd7e9b79a4511edd5f5f35f 100644 (file)
@@ -1184,10 +1184,10 @@ bool
 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;