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.