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] routing faxes to certain folders



Todd R Davis wrote:
I am trying to figure out how to direct faxes to certain folders based on
the call number sent. I have tried using the FaxDispatch file but haven't
found a way to send to certain folders. Only to e-mail addresses.  I'm
wondering if I need to modify the faxrcvd script to do this and if so how
to modify it.   Or is this even an option in hylafax? Thanks in advance.


I found it simplest to modify faxrcvd. In etc/FaxDispatch:

case "$DEVICE" in
        ttyM1a)         SENDTO=inbound-385-4994@xxxxxxxxxxxxxx
                        SAVDIR=8003854994
        ;;
        ttyM1b)         SENDTO=inboundfaxes@xxxxxxxxxxxxxx
                        SAVDIR=8007364795
        ;;
        ttyM1c)         SENDTO=maporder@xxxxxxxxxxxxxx
                        SAVDIR=8003853308
        ;;
        ttyM1d)         SENDTO=inbound-385-4994@xxxxxxxxxxxxxx
                        SAVDIR=8003854994
        ;;
        *)              SENDTO=faxmaster@xxxxxxxxxxxxxx
                        SAVDIR="."
        ;;
esac

Then I modified faxrcvd.

Right after:

if [ -f etc/FaxDispatch ]; then
    . etc/FaxDispatch           # NB: FaxDispatch sets SENDTO
fi

I added:

# move file to proper directory
OLDFILE=$FILE
FILE=recvq/$SAVDIR/$FILENAME.tiff
mv $OLDFILE $FILE

--
Stephen Carville <stephen@xxxxxxxxxxxxxx>
Unix and Network Admin
Nationwide Totalflood
6033 W. Century Blvd
Los Angeles, CA 90045
310-342-3602

____________________ 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