Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
Re: [hylafax-users] FaxDispatch
Carol Almquist wrote:
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.
Then I think that this is what you wanted:
SENDTO=
case "$DEVICE" in
ttyMA04) SENDTO=fax3@xxxxxxxx; FILETYPE=tif;;
ttyMA05) SENDTO=fax3@xxxxxxxx; FILETYPE=tif;;
esac
if [ -z "$SENDTO" ]; then
case "$CIDNUMBER" in
384100) SENDTO=fax0@xxxxxxxx; FILETYPE=tif;;
*) SENDTO=jeff@xxxxxxxx; FILETYPE=tif;;
esac
fi
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*