Using Hylafax with Diva Media boards
NOTE
Whilst Dialogic can offer support on the Dialogic-specific parts of the installation, if your problem is more general, such as being unable to compile Hylafax, we recommend you contact the support forum for that particular package.Â
Â
Follow the instructions below in order to carry out a basic configuration of a Diva Media Board with Hylafax.Â
Download the latest Diva System Release for Linux for your Diva Media board. This is available from theÂ
Dialogic Diva System Release for Linux page.Â
Ensure that you do not have the ISDN4Linux driver or the HiSax driver installed. The Diva System Release has a TTY interface, so the CAPI4Hylafax package is also not required.Â
FollowÂ
How to install Diva System Release for Linux.Â
Follow theÂ
Configuration procedure. Make sure that as part of the configuration you specify that you want to use the TTY Interface.Â
After installing Hylafax, please use the following configuration file as a template for your scenario. Save this file as config.ttyds01, for example.Â
********************************************************************************************
# Config File for tty modem
# $Id: eicon-2,v 1.2 2004/03/05 02:29:32 lhoward Exp $
#
# prototype config file for the Diva ISDN Modem
#
Â
#
#
CountryCode:Â Â Â Â Â Â Â Â Â Â Â 44
AreaCode:Â Â Â Â Â Â Â Â Â Â Â Â Â Â 1628
FAXNumber:Â Â Â Â Â Â Â Â Â Â Â Â Â 3842XX
LongDistancePrefix:Â Â Â Â 0
InternationalPrefix:Â Â Â 00
DialStringRules:Â Â Â Â Â Â Â "etc/dialrules"
ServerTracing:Â Â Â Â Â Â Â Â Â 0xfff
SessionTracing:Â Â Â Â Â Â Â Â 0xfff
RecvFileMode:Â Â Â Â Â Â Â Â Â Â 0600
LogFileMode:Â Â Â Â Â Â Â Â Â Â Â 0600
DeviceMode:Â Â Â Â Â Â Â Â Â Â Â Â 0600
RingsBeforeAnswer:Â Â Â Â Â 2
SpeakerVolume:Â Â Â Â Â Â Â Â Â off
#GettyArgs:Â Â Â Â Â Â Â Â Â Â Â Â "-h %l dx_%s"
GettyArgs:Â Â Â Â Â Â Â Â Â Â Â Â Â "-b -r -s %s %l"
LocalIdentifier:Â Â Â Â Â Â Â "HylaFax -Diva Server"
TagLineFont:Â Â Â Â Â Â Â Â Â Â Â etc/lutRS18.pcf
TagLineFormat:Â Â Â Â Â Â Â Â Â "From %%l|%c|Page %%P of %%T"
MaxRecvPages:Â Â Â Â Â Â Â Â Â Â 25
#
#
Â
ModemType:Â Â Â Â Â Â Â Â Â Â Â Â Â Class2
ModemRate:Â Â Â Â Â Â Â Â Â Â Â Â Â 57600Â Â # Diva Server supports V.34-fax
ModemFlowControl:Â Â Â Â Â Â rtscts
ModemNoFlowCmd:Â Â Â Â Â Â Â Â AT&K0
ModemSoftFlowCmd:Â Â Â Â Â Â AT&K4
ModemHardFlowCmd:Â Â Â Â Â Â AT&K3
Â
Class2APQueryCmd:Â Â Â Â Â Â none
Class2SPLCmd:Â Â Â Â Â Â Â Â Â Â none
Class2TBCCmd:Â Â Â Â Â Â Â Â Â Â none
Class2ECMType:Â Â Â Â Â Â Â Â Â 2.0Â Â Â Â # follows Class 2.0 spec, not Class 2
Â
#Bind Modem to Controller 1
ModemResetCmds:Â Â Â Â Â Â Â Â AT#CID=14+iQ=a1
# Put the Destination Address in CIDNumber. We can the reject calls on the basis
# Of where we are sending them, instead of the Caller ID
CIDNumber:Â Â Â Â Â Â Â Â Â Â Â Â Â "DAD: "
CIDName:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "CID: "
QualifyCID:            etc/cid        # CID access control list file
Â
******************************************************************************************** |
Â
The most important lines here are
RingsBeforeAnswer: 2
This allows enough time for the calling party number and called party number information to be passed to the Hylafax application.Â
ModemResetCmds: AT#CID=14+iQ=a1
This passes the called party number and calling party number in a format that Hylafax understands. The command +iQ=a1, binds the tty port to a Diva Media board (or to a controller where the board has more than one controller), which in this example is controller 1.Â
If you have multiple Diva Media Boards in your machine, or if you have a Diva 4BRI (which has 4 controllers), use the command +iQ=aN where N is the number of the card (or controller if you have a 4BRI) that you want to bind your tty port to.
In addition, if you have a Diva Analog board, use the command +iK=aM where M is the line number of the Diva Analog board that you want to bind your tty port to. This command must be used in conjunction with the AT+iQ command to first set the controller number that the tty interface is bound to. An example can be found here.
Note: Several other AT commands may be used in the ModemResetCmds string.Â
Â