HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] Hylafax QualifyTSI question



Michael Hallager wrote:

Question-

UNSPECIFIED - Is it something that is only added to be reports?

UNSPECIFIED is actually when a fax sends a null string. So I'm not quite sure what I'm filtering - a null string or UNSPECIFIED.


Here's the relevant code with some clueful in-line documentation. Both the documentation and the code make it very clear that if you want to match unspecified TSIs (null) than you really want to match "<UNSPECIFIED>".


       /*
        * Check a received TSI/PWD against the list of acceptable
        * patterns defined for the server.  This form of access
        * control depends on the sender passing a valid TSI/PWD.
        * Note that to accept/reject unspecified values one
        * should match "<UNSPECIFIED>".
        *
        * NB: Caller-ID access control is done elsewhere; prior
        *     to answering a call.
        */
       if (!modem->getRecvTSI(info.sender))            // optional TSI
           info.sender = "<UNSPECIFIED>";
       if (qualifyTSI != "") {
           okToRecv = isTSIOk(info.sender);
           reason = "Permission denied (unnacceptable client TSI)";
           traceServer("%s TSI \"%s\"", okToRecv ? "ACCEPT" : "REJECT",
               (const char*) info.sender);
       }

Lee.

____________________ HylaFAX(tm) Users Mailing List _______________________
 To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
 *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions