Elastix-Hylafax with external modem

Is there a way to use a hardware external modem with the Hylafax build in Elastix?

We have an Elastix server and want to be able to send faxes via an external modem. I do not believe Fax over VOIP would be reliable enough on our bandwidth

"faxaddmodem" adds the device but only get
"modem ttyS0 : Initializing Server", when runing faxstat, (although the ttyIAX1 port is Running and Idle)

I can find no area in Elastix to use/configure the ttyS0 modem or port.


LVL 1
KCITSAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nasirbestCommented:
Yes,

Actually Hylafax was build for hardware modems (but with some tricks is being used for VoIP / Virtual Modems)

you can add new modem from AvantFAX (elastix) interface. follow steps given below. but make sure it is installed properly

1. goto "FAX" -> "AvanfFAX" -> "admin (small icon near 'settings / logout')" -> "Modem" (select form drop down menu near avanatfax logo)
2. enter following info in given form
device = /dev/ttyS0
Alias = MyModem
Contact = my@email.add

3. save settings. you have done

KCITSAuthor Commented:
Hi Nasirbest
Many thanks I had installed avantfax but missed the admin button as it is very small. The modem was in the list and I have followed your instructions however the message below is shown in the avantfax console:
HylaFAX™ version: 4.3.3
ttyS0 [Please wait]

And running the command faxstat in the CLI of the elastix box states:  
Modem ttyS0 (54941135): Initializing server.
I have removed and added the modem a couple of times, it has worked on a standard Hylafax build. I have attached the contents of the /etc/hylafax/etc/config.ttyS0.

The modem is an Acer 56K external modem and responds to our command:
echo atdt"mymobileno." > /dev/ttyS0
which rings my mobile but it will not pick up an incomming call. I appreciate your help.



CountryCode:            61
AreaCode:               7
FAXNumber:              "XXXXXXXX"
LongDistancePrefix:     0
InternationalPrefix:    011
DialStringRules:        etc/dialrules
ServerTracing:          1
SessionTracing:         11
RecvFileMode:           0600
LogFileMode:            0600
DeviceMode:             0600
RingsBeforeAnswer:      1
SpeakerVolume:          off
GettyArgs:              "-h %l dx_%s"
LocalIdentifier:        KCITS-PABX
TagLineFont:            etc/lutRS18.pcf
TagLineFormat:          "From %%l|%c|Page %%P of %%T"
MaxRecvPages:           25
NotifyCmd:              bin/notify.php
#
#
# Modem-related stuff: should reflect modem command interface
# and hardware connection/cabling (e.g. flow control).
#
ModemType:              Class1          # use this to supply a hint
ModemRate:              19200           # rate for DCE-DTE communication
ModemFlowControl:       rtscts          # default
#
ModemNoFlowCmd:         AT&K0           # setup no flow control
ModemHardFlowCmd:       AT&K3           # setup hardware flow control
ModemSoftFlowCmd:       AT&K4           # setup software flow control
ModemSetupDTRCmd:       AT&D2           # setup so DTR drop resets modem
ModemSetupDCDCmd:       AT&C1           # setup so DCD reflects carrier (or not)
#
ModemMfrQueryCmd:       !Rockwell
ModemModelQueryCmd:     !RC288DPi
ModemRevQueryCmd:       ATI3            # product information

Open in new window

KCITSAuthor Commented:
I thought I would post this follow up, we have made some progress but the problem is not completely resolved as the modem is not at all visable in any Elastix menu's, a manual edit was required of the inittab to make the modem become "running and Idle"
I changed the line
 fx1:2345:respawn:/usr/sbin/faxgetty ttyIAX1
to
fx1:2345:respawn:/usr/sbin/faxgetty ttyS0

not sure of the full consequences of this action, the virtual fax appeared to remain functional after the initab change. The hardware modem can send and receive but email forwarding is not possible.

It does not seem as if the modem configuration is fully accepted by Elastix or avantfax. there must be a cleaner more reliable way to install and manage PSTN modems in Elastix
KCITSAuthor Commented:
Oh forgot to mention above, the line edited in the inittab was under this warning message,

# Don't remove or modify this comment. The following block is for fax setup.
fx1:2345:respawn:/usr/sbin/faxgetty ttyIAX1

so I am pretty sure there must be a better way to go about this

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
IP Telephony

From novice to tech pro — start learning today.