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] emulate QualifyCID behavior with Dynamic Config and RejectCall



ian wrote:
Hello, all

Has anyone written a simple dynamic config script to emulate the old QualifyCID behavior?

What I want is for hylafax to only answer the phone as a fax machine only when the CID matches a list of phone numbers.

I've searched and searched, but I can't make heads or tails of the documentation on or the one example of a dynamic config script, and my scripting skills are so limited, I wouldn't even know where to start.

This will reject calls for all calls where CallIDPattern (the first one listed in your modem config file) doesn't match a Caller*ID modem response with "8005551212".


#! /bin/sh
CALLID1=$2
if [ "$CALLID1" != "8005551212" ]; then
   echo "RejectCall: true"
fi

Thanks,

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