Changes

From SME Server
Jump to navigationJump to search
no edit summary
Line 12: Line 12:     
==Sail and Asterisk Setup==
 
==Sail and Asterisk Setup==
===General===
+
===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.
 
*Make sure that the 'Autosense FAX Extension' is set to a number you want to use for the Fax. You will need this number later.
 
*Make sure that the 'Autosense FAX Extension' is set to a number you want to use for the Fax. You will need this number later.
 
*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===
 
For each of the Trunks under ''Trunklines'' that you want to be able to detect incoming Faxes on
 
For each of the Trunks 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
 +
*Include a 'Transformation String' of
 +
99:
 +
 +
{{Note box|We will configure HylaFax later to prefix dialled numbers with 99 so we can identify them as an outgoing fax and route them as desired.
 +
You can use any prefix you want, not just 99 as long as you use it consistently.
 +
See Fax Route and HylaFax sections later}}
 +
 +
===Fax Route===
 +
Create a new Route for faxes with dialplan(s) starting with 99.
 +
example: 99X.
 +
and with Paths pointing to the Trunks you wish to receive faxes with 'Fax' detection ticked as above
    
===Fax Extension===
 
===Fax Extension===
Line 83: Line 96:  
  /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. Choose ttyIAX as the modem port and continue and set other values as required. Do not reboot or start HylaFax yet.
 +
Edit /etc/hylafax/etc/config.ttyIAX and add
 +
ModemDialCmd:        ATDT99%s
 +
This will prefix all numbers dialled by HylaFax with 99 so they can be identified and routed by SAIL
 +
Also check
 +
# make attachments readable
 +
RecvFileMode:          0666
 +
LogFileMode:            0666
 +
DeviceMode:            0666
 +
# for shared lines set to 10
 +
RingsBeforeAnswer:      1
 +
# change to suit
 +
SpeakerVolume:          quiet
 +
LocalIdentifier:        "YourCompany"
 +
Now if you want you can configure who receives faxes by editing
 +
/etc/hylafax/etc/FaxDispatch
 +
Finally set the modem port in the database
 +
db configuration setprop hylafax port=ttyIAX
 +
/sbin/e-smith/expand-template /etc/inittab
 +
Now continue with the contrib setup for Hylafax
    
==iaxmodem Startup Script==
 
==iaxmodem Startup Script==

Navigation menu