Solved

Email routing in Hylafax

Posted on 2015-02-04
1
600 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:mariusk
1 Comment
 
LVL 8

Accepted Solution

by:
Salah Eddine ELMRABET earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Skype for Business 2015 2 69
QOS for voice on Wireless Bridge 1 67
Avaya IP Phones, SonicWall, Site to Site VPN 9 154
CIsco UCM route out PSTN instead of over WAN 2 55
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!
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now