Sample FreeSWITCH analog Configuration file
Important Note Regarding FreeSwitch® and FreeTDM® Support
Support for FreeSwitch and FreeTDM for Sangoma telephony card products are no longer provided by Sangoma. All FreeSwitch drivers and applications are provided as-is with no warranty. Â
Sangoma was previously involved in the FreeTDM and FreeSwitch projects, but has refocused its development efforts primarily on Asterisk-based platforms including FreePBX. The information on this page and other FreeSwitch- and FreeTDB-related pages on the Sangoma Wiki has been retained for historical and reference purposes, but should not be relied upon as reflecting Sangoma's current development efforts or support policies.
freetdm.conf
All I/O related parameters are set in freetdm.conf.
Â
[span wanpipe <span name>] name => freetdm |
Â
span name:Â any string as long as the span name used in freetdm.conf and in freetdm.conf.xml are the same
trunk type:Â possible values are: fxs, fxo
group name:Â any string.
channel type:Â possible values are: fxs, fxo
physical span number:Â This should match the TDMV_SPAN Â parameter in your /etc/wanpipe/wanpipeN.conf
channels:Â Specify which timeslots within this physical span you want to use.
Â
freetdm.conf.xml
Unlike PRI and BRI, analog does not have signaling channels. So in this file, the user mentions which context will be assigned to which span.
<configuration name="freetdm.conf" description="FreeTDM Configuration">          <!-- General FreeTDM Configuration options --> <param name="crash-on-assert" value="no" /> </settings>  <!-- list of ANALOG spans --> <span name="[span name]"> <!-- switch related parameters --> </span> </analog_spans>  |
Â
Sample configuration files
2 FXS lines and 2 FXO lines in the same card.
[ ] [ ]
Â
Configuration Options
In freetdm.conf
Sample FreeSWITCH analog Configuration file#Gains
In freetdm.conf.xml
Sample FreeSWITCH analog Configuration file#Tonegroup
Callerid
Sample FreeSWITCH analog Configuration file#Callwaiting
Sample FreeSWITCH analog Configuration file#Polarity reversal
Sample FreeSWITCH analog Configuration file#Polarity delay
Sample FreeSWITCH analog Configuration file#Enable analog option
Digit timeout
Max-digit
Â
Â
Â
Gains
Â
With the gain option, you can try to increase or decrease the signal strength
rxgain =>Â X
txgain =>Â Y
X and Y can be positive or negative values
Â
Tonegroup
tonegroup is a two letter country code which the user can specify, to select the tone zone
<param name="tonegroup" value="tonegroup" />
tonegroup : us (United States), sg (Singapore), ru (Russia)
Â
Callerid
Enable/Disable callerid
<param name="enable-callerid" value="true" />
Â
Callwaiting
Enable/Disable callwaiting
<param name="callwaiting" value="true" />
Â
Â
Polarity reversal
Here there are several options for polarity reversal. The user can perform hangup on polarity reversal or answer on polarity reversal
Enable/Disable answer on polarity reversal
<param name="answer-polarity-reverse" value="true" />
Â
Enable/Disable hangup on polarity reversal
<param name="hangup-polarity-reverse" value="true" />
Â
Â
Polarity delay
This option is for fxo only
<param name="polarity-delay" value="delay" />
delay: is the time in millisecond
Â
Enable analog option
There are a few option which can be enabled on the analog by setting the following values
<param name="enable-analog-option" value="option" />
option : call-swap, 3-way(three-way calling)
Â
Â
Digit Timeout
This option is for fxs only.
<param name="digit-timeout" value="timeout" />
timeout: amount of time allowed to input digits
Â
Max Digit
This option is for fxs only.
<param name="max-digits" value="max_digit" />
max_digit:maximum of digit allowed
Â