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] FaxDispatch




I would like to be able to route on both the DEVICE and CIDNUMBER and later SENDER. I thought it would execute the first case and if no match was found it would execute the second case and continue until it found a match or ran out of cases.


From: Lee Howard <faxguy@xxxxxxxxxxxxxxxx>
To: Carol Almquist <carol_almquist@xxxxxxxxxxx>
CC: hylafax-users@xxxxxxxxxxx
Subject: Re: [hylafax-users] FaxDispatch
Date: Wed, 09 Nov 2005 08:54:17 -0800

Carol Almquist wrote:

I currently running version 4.2.0 and am trying to use FaxDispatch to route the incoming faxes. Here is my FaxDispatch file ....

case "$DEVICE" in
ttyMA04)            SENDTO=fax3@xxxxxxxx;  FILETYPE=tif;;
ttyMA05)            SENDTO=fax3@xxxxxxxx;  FILETYPE=tif;;
esac
case "$CIDNUMBER" in
384100)             SENDTO=fax0@xxxxxxxx;  FILETYPE=tif;;
*)                  SENDTO=jeff@xxxxxxxx;  FILETYPE=tif;;
esac


If I call 384100 the fax goes to fax0@xxxxxxxx but if ttyMA04 receives the fax it goes to jeff@xxxxxxxx (the default). I know ttyMA04 received the fax from the email. If I switch the order around but leave the default as the last option the DEVICE is routed correctly but not the CIDNUMBER. Is there a problem having the two case statements or do I have something else wrong?


You have to decide how you want things to be handled. The way you have it written there the entire $DEVICE case statement is undone by the $CIDNUMBER case statement.

From your message I can't really tell what you're trying to do. Maybe explain it in more detail, and I can point out what you're doing wrong.

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