Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Note

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
trunk_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

...

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 -->
<settings>

<param name="crash-on-assert" value="no" />

</settings>

 

<!-- list of ANALOG spans -->
<analog_spans>

<span name="[span name]">

<!-- switch related parameters -->
<param name="dialplan" value="XML" />
<param name="context" value="default" /> 

</span>

</analog_spans>

 

 

Sample configuration files


Configuration Options

In freetdm.conf

  1. Gains78480078

In freetdm.conf.xml

  1. Tonegroup78480078

  2. Callerid

  3. Callwaiting78480078

  4. Polarity reversal78480078

  5. Polarity delay

  6. Enable analog option78480078

  7. 78480078

  8. Digit timeout

  9. Max-digit

 

 

 

Anchor
Gains
Gains
Gains

With the gain option, you can try to increase or decrease the signal strength

rxgain => X
txgain => Y

and Y can be positive or negative values

 

Anchor
Tonegroup
Tonegroup
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)

 

Anchor
Callerid
Callerid
Callerid

Enable/Disable callerid

<param name="enable-callerid" value="true" />

 

Anchor
Callwaiting
Callwaiting
Callwaiting

Enable/Disable callwaiting

<param name="callwaiting" value="true" />

 


Anchor
Polarity reversal
Polarity reversal
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" />

 


Anchor
Polarity delay
Polarity delay
Polarity delay

This option is for fxo only

<param name="polarity-delay" value="delay" />

delay: is the time in millisecond

 

Anchor
Enable analog option
Enable analog option
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)

 


Anchor
Digit Timeout
Digit Timeout
Digit Timeout

This option is for fxs only.

<param name="digit-timeout" value="timeout" />

timeout: amount of time allowed to input digits


Anchor
Max Digit
Max Digit
Max Digit

This option is for fxs only.

<param name="max-digits" value="max_digit" />

max_digit:maximum of digit allowed