Solved

Email routing in Hylafax

Posted on 2015-02-04
1
728 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VOIP Setup through a Watchguard BOVPN 4 111
simple redial program 3 142
Cost of receiving calls 5 71
Building a mobile voice application 8 116
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…
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
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…
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…

739 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