wanpipe-freeswitch-config-freetdm-analog
The wancfg_fs configuration script will generate basic freetdm.conf and freetdm.conf.xml files for the analog card. For more advanced options, you can manually edit freetdm.conf and freetdm.conf.xml.
| If you want to use FreeSWITCH/FreeTDM with a USBFXO device, please visit: FreeSWITCH Dahdi Mode |
File format
freetdm.conf
|
[span wanpipe <span name>] name => freetdmtrunk_type => <trunk type> group => <group name> <channel type>-channel => <physical span number>:<channels> |
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.
[freetdm.conf] [freetdm.conf.xml]
Configuration Options
In freetdm.conf
In freetdm.conf.xml
- Tonegroup
- Callerid
- Callwaiting
- Polarity reversal
- Polarity delay
- 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
|







