<div dir="ltr"><div><div>I'm trying to use my ALLO Pri card with Libpri-Dahdi-FreeTDM stack.<br><br></div><div>Here are the packages I've used<br></div><div>Libpri - v1.4.14<br></div><div>Dahdi - v2.9.1<br></div><div>
Freeswitch - Latest pull from Git<br></div><div><br></div><div>All my efforts for Inbound/Outbound calls using PRI line are failing. <br><br>freeswitch@caller0> originate FREETDM/1/1/998822xxxxx &park()<br>2014-03-29 14:59:44.346079 [INFO] ftmod_zt.c:671 Setting echo cancel to 64 taps for 1:1<br>
2014-03-29 14:59:44.346079 [NOTICE] switch_channel.c:1053 New Channel FreeTDM/1:1/9988225250 [e6b2e0fd-fa62-43eb-8b4b-0a48c79b0c99]<br>2014-03-29 14:59:44.366092 [ERR] ftdm_io.c:2674 [s1c1][1:1] outgoing_call method not implemented in this span!<br>
2014-03-29 14:59:44.366092 [NOTICE] mod_freetdm.c:1772 Close Channel FreeTDM/1:1/9988225250 [CS_INIT]<br>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]<br>
-ERR DESTINATION_OUT_OF_ORDER<br><br></div><div><br></div>Somehow the channels are not getting configured properly as the status of Span1 is always DOWN. Any help would be greatly appreciated.<br><br>I've tried the following commands for loading/debugging etc.<br>
<br>freeswitch@caller0> load mod_freetdm<br>2014-03-29 14:51:06.806089 [INFO] mod_enum.c:876 ENUM Reloaded<br>2014-03-29 14:51:06.806089 [INFO] switch_time.c:1369 Timezone reloaded 530 definitions<br>2014-03-29 14:51:06.806089 [NOTICE] ftdm_sched.c:185 Launching main schedule thread<br>
2014-03-29 14:51:06.806089 [NOTICE] ftdm_io.c:6344 Modules configured: 1 <br>2014-03-29 14:51:06.806089 [NOTICE] ftmod_zt.c:1504 Using DAHDI control device<br>2014-03-29 14:51:06.806089 [INFO] ftdm_io.c:5516 Loading IO from /usr/local/freeswitch/mod/ftmod_zt.so [zt]<br>
2014-03-29 14:51:06.806089 [INFO] ftmod_zt.c:601 Setting rxgain val to 0.000000<br>2014-03-29 14:51:06.806089 [INFO] ftmod_zt.c:609 Setting txgain val to 0.000000<br>2014-03-29 14:51:06.806089 [INFO] ftdm_io.c:5480 Auto-loaded I/O module 'zt'<br>
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<br>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<br>
..........<br>2014-03-29 14:51:06.826081 [INFO] ftdm_io.c:5419 Configured 124 channel(s)<br>2014-03-29 14:51:06.826081 [CONSOLE] switch_loadable_module.c:1464 Successfully Loaded [mod_freetdm]<br>2014-03-29 14:51:06.826081 [NOTICE] switch_loadable_module.c:149 Adding Endpoint 'freetdm'<br>
2014-03-29 14:51:06.826081 [NOTICE] switch_loadable_module.c:269 Adding Application 'disable_ec'<br>2014-03-29 14:51:06.826081 [NOTICE] switch_loadable_module.c:269 Adding Application 'disable_dtmf'<br>2014-03-29 14:51:06.826081 [NOTICE] switch_loadable_module.c:269 Adding Application 'enable_dtmf'<br>
2014-03-29 14:51:06.826081 [NOTICE] switch_loadable_module.c:315 Adding API Function 'ftdm'<br>2014-03-29 14:51:06.826081 [NOTICE] switch_loadable_module.c:315 Adding API Function 'ftdm_usage'<br><br>+OK Reloading XML<br>
+OK<br><br><br>freeswitch@caller0> ftdm list<br></div><div><empty><br><br>freeswitch@caller0> ftdm start 1<br>+OK<br><br></div><div>freeswitch@caller0> ftdm dump 1 1<br>span_id: 1<br>chan_id: 1<br>physical_span_id: 1<br>
physical_chan_id: 1<br>physical_status: ok<br>physical_status_red: 0<br>physical_status_yellow: 0<br>physical_status_rai: 0<br>physical_status_blue: 0<br>physical_status_ais: 0<br>physical_status_general: 0<br>signaling_status: DOWN<br>
type: B<br>state: DOWN<br>last_state: DOWN<br>txgain: 0.00<br>rxgain: 0.00<br>cid_date: <br>cid_name: <br>cid_num: <br>ani: <br>aniII: <br>dnis: <br>rdnis: <br>cause: NONE<br>session: (none)<br><br>Dahdi command outputs<br>
root@caller0:/usr/local/freeswitch/bin# dahdi_scan<br>[1]<br>active=yes<br>alarms=OK<br>description=ALLO (PCI) Quad E1 Card 0 Span 1<br>name=Tor3/0/1<br>manufacturer=<br>devicetype=<br>location=PCI Bus 02 Slot 01<br>basechan=1<br>
totchans=31<br>irq=0<br>type=digital-T1<br>syncsrc=1<br>lbo=0 db (CSU)/0-133 feet (DSX-1)<br>coding_opts=HDB3<br>framing_opts=CCS,CRC4<br>coding=HDB3<br>framing=CCS/CRC4<br><br><br>root@caller:/usr/local/freeswitch# lsdahdi<br>
### Span 1: Tor3/0/1 "ALLO (PCI) Quad E1 Card 0 Span 1" (MASTER) CCS/HDB3/CRC4 ClockSource <br> 1 unknown Clear <br> 2 unknown Clear <br> 3 unknown Clear <br> 4 unknown Clear <br>
5 unknown Clear <br> 6 unknown Clear <br> 7 unknown Clear <br> 8 unknown Clear <br> 9 unknown Clear <br> 10 unknown Clear <br> 11 unknown Clear <br>
12 unknown Clear <br> 13 unknown Clear <br> 14 unknown Clear <br> 15 unknown Clear <br> 16 unknown HDLCFCS <br> 17 unknown Clear <br> 18 unknown Clear <br>
19 unknown Clear <br> 20 unknown Clear <br> 21 unknown Clear <br> 22 unknown Clear <br> 23 unknown Clear <br> 24 unknown Clear <br> 25 unknown Clear <br>
26 unknown Clear <br> 27 unknown Clear <br> 28 unknown Clear <br> 29 unknown Clear <br> 30 unknown Clear <br> 31 unknown Clear <br><br><br></div></div>