Solved

Email routing in Hylafax

Posted on 2015-02-04
1
552 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Article by: user_n
How Sip Phone (User Agent) works and communicates with sip servers 1.  There is a sip server and a sip registrar.  The sip server and sip registrar can be one server or two different servers. The sip registrar is the server on which it is record…
Almost all Internet protocol telephones have built-in switches at the back that allow you to connect your personal computer to one port and use the other port to connect your phone to to a Cisco switch.   Why we need to connect the PC to the pho…
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…
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, fr…

760 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

17 Experts available now in Live!

Get 1:1 Help Now