HylaFAX The world's most advanced open source fax server

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

[hylafax-users] Hylafax 5.1.7: Email FAX Output by FAX No



Hi all,

OS: Fedora Core 7
Hylafax: 5.1.7 (Install from source)
Email: Sendmail

Symptom: 
My Hylafax server is connected to 4 modems.  
In one particular modem, I set it up such that it receives fax for 2
telephone nos A and B.
However, for fax dispatch, I would like to set it up such that if I fax
to tel no A, I want to email the fax to one recipient while if I send
fax to tel no B, the fax will go to another email recipient.

I was testing it with $CIDNUMBER and $CALLID1 but both didn't work.
After I changed FaxDispatch, I restarted Hylafax by running:
/etc/rc.d/init.d/hylafax stop
/etc/rc.d/init.d/hylafax start

Any thoughts?

************************************************************************

vi /var/spool/hylafax/etc/FaxDispatch

case "$CIDNUMBER" in
        88955999)
                FILETYPE=pdf;
                SENDTO=john.lee@xxxxxxxxxxxxx
        ;;
        0288955999)
                FILETYPE=pdf;
                SENDTO=john.lee@xxxxxxxxxxxxx
        ;;
esac
case "$CALLID1" in
        88955999)
                FILETYPE=pdf;
                SENDTO=john.lee@xxxxxxxxxxxxx
        ;;
        0288955999)
                FILETYPE=pdf;
                SENDTO=john.lee@xxxxxxxxxxxxx
        ;;
esac

case "$DEVICE" in
        ttyS0)
                FILETYPE=pdf;
                SENDTO=a@xxxxxxxxxxxxx
        ;;
        ttyS1)
                FILETYPE=pdf;
                SENDTO=b@xxxxxxxxxxxxx
        ;;
        ttyS2)
                FILETYPE=pdf;
                SENDTO=c@xxxxxxxxxxxxxx
        ;;
        ttyS3)
                FILETYPE=pdf;
                SENDTO=d@xxxxxxxxxxxxx
        ;;
        *)
                FILETYPE=pdf;
                SENDTO=e@xxxxxxxxxxxxx
        ;;
esac


____________________ 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