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] one server fax but different receivers.



On Thursday 25 January 2007 09:54, Mauro Sanna wrote:
> Hallo.
> Sorry for my bad english.
> I've installed a fax server with a debian linux system.
> It works very well.
> All faxes are received as a pdf attachment in a e-mail account.
> Now more users want to use my fax server but I have only one fax number.
> The problem is that I must send incoming faxes to different e-mails
> depending on which the sender is.
> Based on which element I can discriminate incoming faxes?

The variable CIDNAME (within your FaxDispatch script) holds the sender's 
number.  So you just need to have something like

case "$CIDNAME" in
01332294875)
    SENDTO=anna@localhost
    ;;
01332297472)
    SENDTO=bob@localhost
    ;;
01332268190)
    SENDTO=charlie@xxxxxxxxxxxxxxxxxxxx
    ;;
esac

Note: you may need to use the wildcard * , depending on how your system 
handles numbers with or without STD codes and especially whether or not the 
first digit of the STD code  (usually 0, but I think 9 is used in Spain and 
Italy?)  is present.  If in doubt, have your FaxDispatch write to a log file 
with something like

echo "$CIDNAME" >> /tmp/fax_cidname_log

so you can see what is going on.

--
AJS

____________________ 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