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@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@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@caller0> ftdm list