Changes

From SME Server
Jump to navigationJump to search
no edit summary
Line 6: Line 6:  
{{Level|Medium}}
 
{{Level|Medium}}
   −
==Introduction==
+
===Introduction===
 
This Howto is aimed at the installation of IAXModem in conjunction with Asterisk, SAIL and HylaFax in order to provide a fax over VOIP solution. It is based on information from various forum posts [http://forums.contribs.org/index.php/topic,39258.msg179460.html] [http://forums.contribs.org/index.php/topic,41256.msg219493.html]
 
This Howto is aimed at the installation of IAXModem in conjunction with Asterisk, SAIL and HylaFax in order to provide a fax over VOIP solution. It is based on information from various forum posts [http://forums.contribs.org/index.php/topic,39258.msg179460.html] [http://forums.contribs.org/index.php/topic,41256.msg219493.html]
   −
==Sail and Asterisk Setup==
+
===Sail and Asterisk Setup===
===Global Settings===
+
====Global Settings====
 
In ''Global Settings''
 
In ''Global Settings''
 
*Make sure that ''Late Termination'' is set to 'No'.
 
*Make sure that ''Late Termination'' is set to 'No'.
Line 16: Line 16:  
*The ''Fax Delay'' setting defaults to 2 seconds. You may need to adjust this later to make sure faxes get detected before asterisk attempts to terminate somewhere other than the FAX.  
 
*The ''Fax Delay'' setting defaults to 2 seconds. You may need to adjust this later to make sure faxes get detected before asterisk attempts to terminate somewhere other than the FAX.  
   −
===Trunklines===
+
====Trunklines====
 
For each Trunk under ''Trunklines'' that you want to be able to detect incoming Faxes on
 
For each Trunk under ''Trunklines'' that you want to be able to detect incoming Faxes on
 
*Make sure that the ''Fax'' detection tick box is ticked
 
*Make sure that the ''Fax'' detection tick box is ticked
Line 25: Line 25:  
See Fax Route and HylaFax sections later}}
 
See Fax Route and HylaFax sections later}}
   −
===Fax Route===
+
====Fax Route====
 
Create a new Route for faxes with dialplan(s) starting with 99.  
 
Create a new Route for faxes with dialplan(s) starting with 99.  
 
  example: 99X.
 
  example: 99X.
 
and with ''Paths'' pointing to the Trunks on which you wish to receive faxes - those with ''Fax'' detection ticked as above
 
and with ''Paths'' pointing to the Trunks on which you wish to receive faxes - those with ''Fax'' detection ticked as above
   −
===Fax Extension===
+
====Fax Extension====
 
Create a new Extension with the same number as set in the ''Autosense FAX Extension'' as above. The ''Device'' should be 'IAXModem'.
 
Create a new Extension with the same number as set in the ''Autosense FAX Extension'' as above. The ''Device'' should be 'IAXModem'.
 
{{Note box|We will assume an ''Extension Number'' of '2000', a ''Password'' (secret) of 'asterisk' and a ''Display Name'' of 'FaxModem'}}
 
{{Note box|We will assume an ''Extension Number'' of '2000', a ''Password'' (secret) of 'asterisk' and a ''Display Name'' of 'FaxModem'}}
Line 45: Line 45:  
  allow=slin
 
  allow=slin
   −
==IAXModem==
+
===IAXModem===
===Installation===
+
====Installation====
 
{{Note box|Sail installs /etc/rc.d/rc7.d/S93iaxmodem but does not install /etc/rc.d/init.d/iaxmodem}}
 
{{Note box|Sail installs /etc/rc.d/rc7.d/S93iaxmodem but does not install /etc/rc.d/init.d/iaxmodem}}
 
Download the iaxmodem rpm from Aelintra and install
 
Download the iaxmodem rpm from Aelintra and install
Line 55: Line 55:  
  chmod 766 iaxmodem
 
  chmod 766 iaxmodem
 
  chown root:root iaxmodem}}
 
  chown root:root iaxmodem}}
===Configuration===
+
====Configuration====
 
Check and edit /etc/iaxmodem/ttyIAX0 as necessary:
 
Check and edit /etc/iaxmodem/ttyIAX0 as necessary:
 
  device          /dev/ttyIAX
 
  device          /dev/ttyIAX
Line 68: Line 68:  
  cidnumber      0123456789
 
  cidnumber      0123456789
 
  codec          slinear
 
  codec          slinear
===Check and Run===
+
====Check and Run====
 
Check the modem registers with Sail and Asterisk
 
Check the modem registers with Sail and Asterisk
 
  /usr/local/sbin/iaxmodem ttyIAX
 
  /usr/local/sbin/iaxmodem ttyIAX
Line 93: Line 93:  
  /etc/rc.d/rc7.d/S93iaxmodem start
 
  /etc/rc.d/rc7.d/S93iaxmodem start
   −
==HylaFax==
+
===HylaFax===
 
Install the [[HylaFax|smeserver-hylafax]] contrib.
 
Install the [[HylaFax|smeserver-hylafax]] contrib.
 
When you run faxsetup, at the end it will ask to continue and run faxaddmodem to setup a modem.  
 
When you run faxsetup, at the end it will ask to continue and run faxaddmodem to setup a modem.  
Line 118: Line 118:  
Now continue with the contrib setup for Hylafax
 
Now continue with the contrib setup for Hylafax
   −
==iaxmodem Startup Script==
+
===iaxmodem Startup Script===
 
The following is the code for the /etc/rc.d/init.d/iaxmodem script from the current iaxmodem-1.2.0.tar.gz source.
 
The following is the code for the /etc/rc.d/init.d/iaxmodem script from the current iaxmodem-1.2.0.tar.gz source.
 
  #!/bin/sh
 
  #!/bin/sh

Navigation menu