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] Generating a Caller-ID only log file



Hi, Lee!

Was the patch you described below ever committed to HylaFax? Thanks!

Yours,

	-mi

On понеділок 13 березень 2006, Lee Howard wrote:
[...]
= The attached patch adds a "QualifyCID-Ex" feature that is similar to 
= both QualifyCID and DynamicConfig.
= 
= You configure it by setting a config line in your modem config like this:
= 
=   QualifyCID-Ex:  etc/qualifycid-ex.sh
= 
= And then you simply create the /var/spool/hylafax/etc/qualifycid-ex.sh 
= script.  (Remember to mark it executable!)
= 
= QualifyCID-Ex is like DynamicConfig in that it is called with the device 
= name as the first argument and then each CallIDPattern match after 
= that.  QualifyCID-Ex, however, is run before QualifyCID is checked... 
= before the call is answered or not.  QualifyCID-Ex is like QualifyCID in 
= that a non-zero exit value from QualifyCID-Ex will cause calls to be 
= rejected.
= 
= So, for an example QualifyCID-Ex, here is this:
= 
=   #!/bin/sh
=   echo "$1 $2 $3 $4" >> /tmp/call-log
=   if [ "$2" = "8005551212" ]; then
=       exit 1   # reject this call
=   fi
=   exit 0   # all other calls are okay
= 
= 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