]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Fix faxgetty's CID reading when it's available more than 1 time per loop.
authorAidan Van Dyk <aidan@ifax.com>
Mon, 24 Nov 2003 16:10:10 +0000 (16:10 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Mon, 24 Nov 2003 16:10:10 +0000 (16:10 +0000)
Prevents getting CID information doubled.

See BUG  454

faxd/faxGettyApp.c++

index 5adcbdbfd8ca36c7862930a62f45518e98975215..52b366a7458e828699643623a5ab752d92ca5b0f 100644 (file)
@@ -217,11 +217,11 @@ faxGettyApp::listenForRing()
 {
     Dispatcher::instance().stopTimer(&answerHandler);
 
-    CallerID cid;
-    CallType ctype = ClassModem::CALLTYPE_UNKNOWN;
     bool again;
 
     do {
+        CallType ctype = ClassModem::CALLTYPE_UNKNOWN;
+        CallerID cid;
         again = false;
 
         if (modemWaitForRings(1, ctype, cid)) {