?
Solved

Email routing in Hylafax

Posted on 2015-02-04
1
Medium Priority
?
946 Views
Last Modified: 2015-03-03
Running Hylafax on Debian with two modems connected.
Incoming faxes are routed to email addresses which are specified in /etc/hylafax/FaxDispatch file using the SENDTO directive.
All of the incoming faxes from both of the modems are routed to the email addresses specified in the above file.

I'm looking for a way to route incoming faxes to different email addresses based on the modem used to receive the fax.

For example:
Incoming fax from modem A - route to user1@domain.com and user2@domain.com
Incoming fax from modem B - route to user3@domain com and user4@domain.com

Any ideas how this can be established ?

Thanks.
0
Comment
Question by:Marius Kaizerman
1 Comment
 
LVL 8

Accepted Solution

by:
Salah Eddine ELMRABET earned 2000 total points
ID: 40632076
Hi,

You have to choice to dispatch the incoming fax:

Dispatch based on incoming modem (if you have only one line number per modem, the ttyxx will need to be changed as your device cofig), the script is as follow:

NOTIFY_FAXMASTER=no;
case "$DEVICE" in
      ttyxx)      SENDTO=user1@domain.com,user2@domain.com;      FILETYPE=pdf;;
    ttyyy)      SENDTO=user3@domain.com,user4@domain.com;      FILETYPE=pdf;;
esac

Dispatch based on incoming called number (the xxxx will need to be changed to match your line number last 4 digit), the script is as follow:

case "$CALLIDx" in
      *xxxx)      SENDTO=user1@domain.com,user2@domain.com;      FILETYPE=pdf;;
      *yyyy)      SENDTO=user3@domain.com,user4@domain.com;      FILETYPE=pdf;;
esac

Note that the x in $CALLIDx represent the CallIDPattern instance number in config.ttyxx, IE: the x will be 2 so $CALLID2 in the following modem config case:

ModemResetCmds:         "AT#CID=10"     # enable ANI/DNIS reporting
RingsBeforeAnswer:      0               # collect info between two RINGs
CallIDPattern:          "NMBR = "       # pattern string for calling number
CallIDPattern:          "NDID = "       # pattern string for called number
CallIDAnswerLength:     1

Good luck,

Salah
0

Featured Post

Enhanced Intelligibility Without Cable Clutter

Challenge: The ESA office in Brussels wanted a reliable audio conference system for video conferences. Their requirement - No participant must be left out from the conference and the audio quality must not be compromised.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a step by step guide on creating single number reach (mobility) for Cisco Call Manager.  After configuring this when someone calls your deskphone after 3-4 rings your cell phone will start to ring.  If you do not answer the call will go to y…
Transferring data across the virtual world became simpler but protecting it is becoming a real security challenge.  How to approach cyber security  in today's business world!
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question