]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
[Bug 311] patch allows parsing of extended RING data
authorDarren Nickerson <darren.nickerson@ifax.com>
Sat, 6 Jul 2002 18:06:08 +0000 (18:06 +0000)
committerDarren Nickerson <darren.nickerson@ifax.com>
Sat, 6 Jul 2002 18:06:08 +0000 (18:06 +0000)
Simple patch developed by iFax Solutions which allows extended RING data
(common with EICON and Elsa modems) to be detected as a ring for for
ModemConfig::parseCID() - the function which uses CIDNumber and CIDName
config definitions - to actually parse the extended RING data string.

faxd/ClassModem.c++

index b4db87ed97e13dc5caaf27001f21c2e0c320a353..4e2e623b6a6dea95d26fbf5794c540ef05e26f91 100644 (file)
@@ -1196,6 +1196,8 @@ ClassModem::waitForRings(u_int n, CallType& type, CallerID& cinfo)
                else if (streq(conf.ringVoice, rbuf))
                    type = CALLTYPE_VOICE;
                else {
+                   if (strneq(rbuf, "RING ", 5))       // extended RING
+                       n--;
                    conf.parseCID(rbuf, cinfo);
                    break;
                }