]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Allow "any" as answer method for FIFO messages
authorPatrice Fournier <pfournier@ifax.com>
Fri, 22 Jan 2010 21:24:26 +0000 (16:24 -0500)
committerAidan Van Dyk <mountie@cherry.home.highrise.ca>
Wed, 29 Jun 2011 13:31:48 +0000 (09:31 -0400)
"ANSWER modem" hfaxd command with no method sends "any" as the method.
faxanswer defaults to an empty method, but lists "any" as a valid method
in the man page.This method was not accepted by faxgetty. This adds the
"any" method as an alias to no method at all.

faxd/faxGettyApp.c++

index a3dfabd4491cb2f1eea205541df26cb47e8e58fe..aa7cd36e2411214f1485b3057b45f99b9e970fa7 100644 (file)
@@ -916,7 +916,7 @@ faxGettyApp::FIFOMessage(const char* cp)
     switch (cp[0]) {
     case 'A':                          // answer the phone
        traceServer("ANSWER %s", cp[1] != '\0' ? cp+1 : "any");
-       if (cp[1] != '\0') {
+       if (cp[1] != '\0' && !streq(cp+1, "any")) {
            if (streq(cp+1, "fax"))
                answerPhoneCmd(ClassModem::ANSTYPE_FAX);
            else if (streq(cp+1, "data"))