Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Email routing in Hylafax

Posted on 2015-02-04
1
Medium Priority
?
913 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
[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 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

Meet the Family that is Made for Collaboration

The TeamConnect Family product group as part of the Sennheiser for Business Portfolio comprising high-quality, technically well-conceived meeting solutions for business communication – designed for any meeting room and any meeting situation.

Question has a verified solution.

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

What do we know about Legacy Video Conferencing? - Full IT support needed! - Complicated systems at outrageous prices! - Intense training required! Highfive believes we need to embrace a new alternative.
Not everyone has adapted to a rapid advancement in technology; there are people who are reluctant or afraid to delve into this brave new world of IT. If you have a friend or a family member who suffers from the so-called technophobia, here is how yo…
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…
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…

618 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