[Freeswitch-users] Freeswtich with freetdm - Span status is always "DOWN"

Neo Cheema neo.cheema at gmail.com
Sat Mar 29 13:43:02 MSK 2014


I'm trying to use my ALLO Pri card with Libpri-Dahdi-FreeTDM stack.

Here are the packages I've used
Libpri - v1.4.14
Dahdi - v2.9.1
Freeswitch - Latest pull from Git

All my efforts for Inbound/Outbound calls using PRI line are failing.

freeswitch at caller0> originate FREETDM/1/1/998822xxxxx &park()
2014-03-29 14:59:44.346079 [INFO] ftmod_zt.c:671 Setting echo cancel to 64
taps for 1:1
2014-03-29 14:59:44.346079 [NOTICE] switch_channel.c:1053 New Channel
FreeTDM/1:1/9988225250 [e6b2e0fd-fa62-43eb-8b4b-0a48c79b0c99]
2014-03-29 14:59:44.366092 [ERR] ftdm_io.c:2674 [s1c1][1:1] outgoing_call
method not implemented in this span!
2014-03-29 14:59:44.366092 [NOTICE] mod_freetdm.c:1772 Close Channel
FreeTDM/1:1/9988225250 [CS_INIT]
2014-03-29 14:59:44.366092 [NOTICE] switch_ivr_originate.c:2707 Cannot
create outgoing channel of type [FREETDM] cause: [DESTINATION_OUT_OF_ORDER]
-ERR DESTINATION_OUT_OF_ORDER


Somehow the channels are not getting configured properly as the status of
Span1 is always DOWN.  Any help would be greatly appreciated.

I've tried the following commands for loading/debugging etc.

freeswitch at caller0> load mod_freetdm
2014-03-29 14:51:06.806089 [INFO] mod_enum.c:876 ENUM Reloaded
2014-03-29 14:51:06.806089 [INFO] switch_time.c:1369 Timezone reloaded 530
definitions
2014-03-29 14:51:06.806089 [NOTICE] ftdm_sched.c:185 Launching main
schedule thread
2014-03-29 14:51:06.806089 [NOTICE] ftdm_io.c:6344 Modules configured: 1
2014-03-29 14:51:06.806089 [NOTICE] ftmod_zt.c:1504 Using DAHDI control
device
2014-03-29 14:51:06.806089 [INFO] ftdm_io.c:5516 Loading IO from
/usr/local/freeswitch/mod/ftmod_zt.so [zt]
2014-03-29 14:51:06.806089 [INFO] ftmod_zt.c:601 Setting rxgain val to
0.000000
2014-03-29 14:51:06.806089 [INFO] ftmod_zt.c:609 Setting txgain val to
0.000000
2014-03-29 14:51:06.806089 [INFO] ftdm_io.c:5480 Auto-loaded I/O module 'zt'
2014-03-29 14:51:06.806089 [INFO] ftmod_zt.c:409 configuring device
/dev/dahdi/channel channel 1 as FreeTDM device 1:1 fd:57
2014-03-29 14:51:06.806089 [INFO] ftmod_zt.c:409 configuring device
/dev/dahdi/channel channel 2 as FreeTDM device 1:2 fd:58
..........
2014-03-29 14:51:06.826081 [INFO] ftdm_io.c:5419 Configured 124 channel(s)
2014-03-29 14:51:06.826081 [CONSOLE] switch_loadable_module.c:1464
Successfully Loaded [mod_freetdm]
2014-03-29 14:51:06.826081 [NOTICE] switch_loadable_module.c:149 Adding
Endpoint 'freetdm'
2014-03-29 14:51:06.826081 [NOTICE] switch_loadable_module.c:269 Adding
Application 'disable_ec'
2014-03-29 14:51:06.826081 [NOTICE] switch_loadable_module.c:269 Adding
Application 'disable_dtmf'
2014-03-29 14:51:06.826081 [NOTICE] switch_loadable_module.c:269 Adding
Application 'enable_dtmf'
2014-03-29 14:51:06.826081 [NOTICE] switch_loadable_module.c:315 Adding API
Function 'ftdm'
2014-03-29 14:51:06.826081 [NOTICE] switch_loadable_module.c:315 Adding API
Function 'ftdm_usage'

+OK Reloading XML
+OK


freeswitch at caller0> ftdm list
<empty>

freeswitch at caller0> ftdm start 1
+OK

freeswitch at caller0> 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: DOWN
type: B
state: DOWN
last_state: DOWN
txgain: 0.00
rxgain: 0.00
cid_date:
cid_name:
cid_num:
ani:
aniII:
dnis:
rdnis:
cause: NONE
session: (none)

Dahdi command outputs
root at caller0:/usr/local/freeswitch/bin# dahdi_scan
[1]
active=yes
alarms=OK
description=ALLO (PCI) Quad E1 Card 0 Span 1
name=Tor3/0/1
manufacturer=
devicetype=
location=PCI Bus 02 Slot 01
basechan=1
totchans=31
irq=0
type=digital-T1
syncsrc=1
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS/CRC4


root at caller:/usr/local/freeswitch# lsdahdi
### Span  1: Tor3/0/1 "ALLO (PCI) Quad E1 Card 0 Span 1" (MASTER)
CCS/HDB3/CRC4 ClockSource
  1 unknown    Clear
  2 unknown    Clear
  3 unknown    Clear
  4 unknown    Clear
  5 unknown    Clear
  6 unknown    Clear
  7 unknown    Clear
  8 unknown    Clear
  9 unknown    Clear
 10 unknown    Clear
 11 unknown    Clear
 12 unknown    Clear
 13 unknown    Clear
 14 unknown    Clear
 15 unknown    Clear
 16 unknown    HDLCFCS
 17 unknown    Clear
 18 unknown    Clear
 19 unknown    Clear
 20 unknown    Clear
 21 unknown    Clear
 22 unknown    Clear
 23 unknown    Clear
 24 unknown    Clear
 25 unknown    Clear
 26 unknown    Clear
 27 unknown    Clear
 28 unknown    Clear
 29 unknown    Clear
 30 unknown    Clear
 31 unknown    Clear
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140329/d3b3fb1a/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: system.conf
Type: application/octet-stream
Size: 835 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140329/d3b3fb1a/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freetdm.conf
Type: application/octet-stream
Size: 302 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140329/d3b3fb1a/attachment-0003.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freetdm.conf.xml
Type: text/xml
Size: 1137 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140329/d3b3fb1a/attachment-0001.xml 


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