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



thanks for the help, Lee.

I've modified the script, to grep a list for matching numbers, like so:

---------------------------------------------------------------------
#! /bin/sh
CALLID1=$2
if cat /var/spool/hylafax/etc/cid.txt | grep -q  $CALLID1
then :
else  echo "RejectCall: true"
fi

-----------------------------------------------------------------------


It may not be the most elegant solution, but it works... cid.txt being a list of phone numbers from which I wish to receive faxes, one number per line. IF anyone has a better idea, I'd like to hear it...

Ian


____________________ 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