[Freeswitch-users] Outbound calls via TDM2400P analog card using FreeTDM

Errol Samuels ewsamuels at gmail.com
Mon Jan 27 20:16:21 MSK 2014


Hello All,

I seem to have an issue being able to make outbound calls via a Digium
TDM2400P configured with Dahdi and FreeTDM. I searched and followed the
instructions on the Freeswitch site as well as Sangoma's site but can't
seem to get any further so I am hoping that someone could double check my
config and provide some feedback.

The test calls are being sent from a registered Jitsi softphone.  I am not
getting any progress tones when I send the call from FS and the call
appears to hang for about 30 secs or so.  When I test with Asterisk I get
the progress tones so perhaps there is some issue with my config.

The full log is available here: http://pastebin.freeswitch.org/21901

freeswitch at internal> ftdm dump 1 1

span_id: 1
chan_id: 1
physical_span_id: 1
physical_chan_id: 1
physical_status: ok
physical_status_red: 0
physical_status_yellow: 0
physical_status_rai: 0
physical_status_blue: 0
physical_status_ais: 0
physical_status_general: 0
signaling_status: UP
type: FXO
state: DOWN
last_state: DOWN
txgain: 2.00
rxgain: 3.00
cid_date:
cid_name:
cid_num:
ani:
aniII:
dnis:
rdnis:
cause: NONE
session: (none)


**** My configuration is as follows: ****

## /etc/dahdi/system.conf

# Span 1: WCTDM/0 "Wildcard TDM2400P" (MASTER)
fxsks=1
echocanceller=mg2,1
fxsks=2
echocanceller=mg2,2
.
.
<snipped>
.
.
fxsks=23
echocanceller=mg2,23
fxsks=24
echocanceller=mg2,24

# Global data

loadzone    = us
defaultzone = us

## /usr/local/freeswitch/conf/freetdm.conf

[general]
cpu_monitor => no
cpu_monitoring_interval => 1000
cpu_set_alarm_threshold => 80
cpu_clear_alarm_threshold => 70
cpu_alarm_action => warn

debugdtmf_directory=/var/log/freetdm.log
iostats => yes

[span zt myDahdiFXO]
name => myDahdiFXO
trunk_type => fxo
analog-start-type => kewl
group => grp1
txgain=2.0
rxgain=3.0
fxo-channel => 1-24

## /usr/local/freeswitch/conf/autoload_configs/freetdm.conf.xml

<configuration name="freetdm.conf" description="FreeTDM Configuration">

    <settings>
        <param name="debug" value="0"/>
        <!--<param name="fail-on-error" value="no"/>-->
    </settings>
    <analog_spans>
                <!-- The span name must match the name in your freetdm.conf
-->
                <span name="myDahdiFXO">
                <param name="dialplan" value="XML"/>
                <param name="context" value="default"/>
                <param name="answer-polarity-reverse" value="true"/>
                <param name="tonegroup" value="us"/>
                <param name="enable_callerid" value="true"/>
                <param name="enable-analog-option" value="call-swap"/>
                </span>
        </analog_spans>
</configuration>

## Dialplan
## /usr/local/freeswitch/conf/dialplan/default/10_Outbound_FXO.xml

<include>
<extension name="Outbound_via_FreeTDM">
  <condition field="${toll_allow}" expression="domestic"/>
  <condition field="destination_number" expression="^9(\d{8})$">
    <action application="set" data="call_direction=outbound" />
     <action application="set" data="hangup_after_bridge=true" />
    <action application="set"
data="effective_caller_id_number=${outbound_caller_id_number}"/>
    <action application="set"
data="effective_caller_id_name=${outbound_caller_id_name}"/>
    <action application="bridge"
data="freetdm/myDahdiFXO/a/${destination_number}"/>
  </condition>
</extension>
</include>

Hope I have given enough info.

Thanks in advance

Errol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140127/07a0d470/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list