Link to home
Start Free TrialLog in
Avatar of KCITS
KCITSFlag for Australia

asked on

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.


Avatar of nasirbest
nasirbest
Flag of Pakistan image

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

Avatar of KCITS

ASKER

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

Avatar of KCITS

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of KCITS
KCITS
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial