Hi all!<br><br>FreeTDM does not work with Digium equipment.<br><br>Equipment: Digium TE121<br>OS: CentOS 5.6<br>DAHDI: 2.4.1.2<br># ./dahdi_scan<br>[1]<br>active=yes<br>alarms=OK<br>description=Wildcard TE121 Card 0<br>name=WCT1/0<br>
manufacturer=Digium<br>devicetype=Wildcard TE121 (VPMADT032)<br>location=PCI Bus 04 Slot 09<br>basechan=1<br>totchans=31<br>irq=5<br>type=digital-E1<br>syncsrc=1<br>lbo=0 db (CSU)/0-133 feet (DSX-1)<br>coding_opts=AMI,HDB3<br>
framing_opts=CCS,CRC4<br>coding=HDB3<br>framing=CCS<br><br>LIBPRI: 1.4.11.5<br><br>zt.conf<br>[defaults]<br>codec_ms => 20<br>wink_ms => 150<br>flash_ms => 750<br>echo_cancel_level => 64<br>rxgain => 0.0<br>
txgain => 0.0<br><br>freetdm.conf<br>[span zt pri]<br>name => pri<br>trunk_type => E1<br>group => e1group<br>b-channel => 1-15<br>b-channel => 17-31<br>d-channel => 16<br><br>part of freetdm.conf.xml:<br>
ššš <libpri_spans><br>ššššššš <span id="1" name="pri"><br>ššššššššššš <param name="node" value="network"/><br>ššššššššššš <param name="switch" value="4ess"/><br>
ššššššššššš <param name="l1" value="alaw"/><br>ššššššššššš <param name="dp" value="unknown"/><br>ššššššššššš <param name="debug" value="q931_all"/><br>
ššššššššššš <param name="dialplan" value="XML"/><br>ššššššššššš <param name="context" value="default"/><br>ššššššš </span><br>ššš </libpri_spans><br><br>and log result (<span id="result_box" class="short_text" lang="en"><span title="îÁÖÍÉÔÅ, ÞÔÏÂÙ Õ×ÉÄÅÔØ ÁÌØÔÅÒÎÁÔÉ×ÎÙÊ ÐÅÒÅ×ÏÄ" class="hps">important</span> <span title="îÁÖÍÉÔÅ, ÞÔÏÂÙ Õ×ÉÄÅÔØ ÁÌØÔÅÒÎÁÔÉ×ÎÙÊ ÐÅÒÅ×ÏÄ" class="hps">parts</span></span>):<br>
start freetdm:<br>2011-06-09 02:07:00.591482 [DEBUG] ftdm_config.c:52 New mod directory: /usr/local/freeswitch/mod<br>2011-06-09 02:07:00.591492 [DEBUG] ftdm_config.c:58 New config directory: /usr/local/freeswitch/conf<br>
2011-06-09 02:07:00.591539 [DEBUG] ftdm_sched.c:154 Initializing scheduling API<br>2011-06-09 02:07:00.591545 [DEBUG] ftdm_sched.c:251 Created schedule freetdm-master<br>2011-06-09 02:07:00.591551 [NOTICE] ftdm_sched.c:178 Launching main schedule thread<br>
2011-06-09 02:07:00.591581 [DEBUG] ftdm_sched.c:187 Running schedule freetdm-master in the main schedule thread<br>2011-06-09 02:07:00.591592 [DEBUG] ftdm_config.c:80 Configuration file is /usr/local/freeswitch/conf/modules.conf.<br>
2011-06-09 02:07:00.591639 [NOTICE] ftdm_io.c:5656 Modules configured: 1<br>2011-06-09 02:07:00.591645 [DEBUG] ftdm_config.c:80 Configuration file is /usr/local/freeswitch/conf/freetdm.conf.<br>2011-06-09 02:07:00.591659 [DEBUG] ftdm_io.c:4595 Reading FreeTDM configuration file<br>
2011-06-09 02:07:00.591679 [DEBUG] ftdm_io.c:4611 found config for span<br>2011-06-09 02:07:00.591783 [NOTICE] ftmod_zt.c:1300 Using DAHDI control device<br>2011-06-09 02:07:00.591794 [INFO] ftdm_io.c:4898 Loading IO from /usr/local/freeswitch/mod/ftmod_zt.so [zt]<br>
2011-06-09 02:07:00.591814 [DEBUG] ftdm_config.c:80 Configuration file is /usr/local/freeswitch/conf/zt.conf.<br>2011-06-09 02:07:00.591840 [INFO] ftmod_zt.c:577 Setting rxgain val to 0.000000<br>2011-06-09 02:07:00.591846 [INFO] ftmod_zt.c:585 Setting txgain val to 0.000000<br>
2011-06-09 02:07:00.591860 [INFO] ftdm_io.c:790 Auto-loaded I/O module 'zt'<br>2011-06-09 02:07:00.591885 [DEBUG] ftdm_io.c:4625 created span 1 (pri) of type zt<br>2011-06-09 02:07:00.591890 [DEBUG] ftdm_io.c:4641 span 1 [name]=[pri]<br>
2011-06-09 02:07:00.591896 [DEBUG] ftdm_io.c:4641 span 1 [trunk_type]=[E1]<br>2011-06-09 02:07:00.591902 [DEBUG] ftdm_io.c:4646 setting trunk type to 'E1'<br>2011-06-09 02:07:00.591907 [DEBUG] ftdm_io.c:4641 span 1 [group]=[e1group]<br>
2011-06-09 02:07:00.591912 [DEBUG] ftdm_io.c:4641 span 1 [b-channel]=[1-15]<br>2011-06-09 02:07:00.591940 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 1 as FreeTDM device 1:1 fd:25<br>2011-06-09 02:07:00.591963 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 2 as FreeTDM device 1:2 fd:26<br>
2011-06-09 02:07:00.591984 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 3 as FreeTDM device 1:3 fd:27<br>2011-06-09 02:07:00.592006 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 4 as FreeTDM device 1:4 fd:28<br>
2011-06-09 02:07:00.592029 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 5 as FreeTDM device 1:5 fd:29<br>2011-06-09 02:07:00.592049 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 6 as FreeTDM device 1:6 fd:30<br>
2011-06-09 02:07:00.592069 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 7 as FreeTDM device 1:7 fd:31<br>2011-06-09 02:07:00.592090 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 8 as FreeTDM device 1:8 fd:32<br>
2011-06-09 02:07:00.592110 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 9 as FreeTDM device 1:9 fd:33<br>2011-06-09 02:07:00.592131 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 10 as FreeTDM device 1:10 fd:34<br>
2011-06-09 02:07:00.592151 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 11 as FreeTDM device 1:11 fd:35<br>2011-06-09 02:07:00.592171 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 12 as FreeTDM device 1:12 fd:36<br>
2011-06-09 02:07:00.592192 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 13 as FreeTDM device 1:13 fd:37<br>2011-06-09 02:07:00.592212 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 14 as FreeTDM device 1:14 fd:38<br>
2011-06-09 02:07:00.592231 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 15 as FreeTDM device 1:15 fd:39<br>2011-06-09 02:07:00.592239 [DEBUG] ftdm_io.c:5200 Creating new group:e1group<br>2011-06-09 02:07:00.592275 [DEBUG] ftdm_io.c:4641 span 1 [b-channel]=[17-31]<br>
2011-06-09 02:07:00.592299 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 17 as FreeTDM device 1:16 fd:40<br>2011-06-09 02:07:00.592323 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 18 as FreeTDM device 1:17 fd:41<br>
2011-06-09 02:07:00.592348 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 19 as FreeTDM device 1:18 fd:42<br>2011-06-09 02:07:00.592369 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 20 as FreeTDM device 1:19 fd:43<br>
2011-06-09 02:07:00.592390 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 21 as FreeTDM device 1:20 fd:44<br>2011-06-09 02:07:00.592422 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 22 as FreeTDM device 1:21 fd:45<br>
2011-06-09 02:07:00.592442 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 23 as FreeTDM device 1:22 fd:46<br>2011-06-09 02:07:00.592462 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 24 as FreeTDM device 1:23 fd:47<br>
2011-06-09 02:07:00.592486 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 25 as FreeTDM device 1:24 fd:48<br>2011-06-09 02:07:00.592510 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 26 as FreeTDM device 1:25 fd:49<br>
2011-06-09 02:07:00.592531 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 27 as FreeTDM device 1:26 fd:50<br>2011-06-09 02:07:00.592558 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 28 as FreeTDM device 1:27 fd:51<br>
2011-06-09 02:07:00.592584 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 29 as FreeTDM device 1:28 fd:52<br>2011-06-09 02:07:00.592609 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 30 as FreeTDM device 1:29 fd:53<br>
2011-06-09 02:07:00.592628 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 31 as FreeTDM device 1:30 fd:54<br>2011-06-09 02:07:00.592654 [DEBUG] ftdm_io.c:4641 span 1 [d-channel]=[16]<br>2011-06-09 02:07:00.592692 [INFO] ftmod_zt.c:396 configuring device /dev/dahdi/channel channel 16 as FreeTDM device 1:31 fd:55<br>
2011-06-09 02:07:00.592712 [INFO] ftdm_io.c:4823 Configured 31 channel(s)<br>2011-06-09 02:07:00.593269 [INFO] ftdm_io.c:4898 Loading IO from /usr/local/freeswitch/mod/ftmod_libpri.so [libpri]<br>2011-06-09 02:07:00.593283 [DEBUG] ftdm_io.c:4839 Module libpri does not support configuration.<br>
2011-06-09 02:07:00.593287 [INFO] ftdm_io.c:4910 Loading SIG from /usr/local/freeswitch/mod/ftmod_libpri.so<br>2011-06-09 02:07:00.593292 [INFO] ftdm_io.c:5133 auto-loaded 'libpri'<br>2011-06-09 02:07:00.593302 [NOTICE] ftmod_libpri.c:1981 Setting default Layer 1 to ALAW since this is an E1/BRI/BRI PTMP trunk<br>
2011-06-09 02:07:00.593566 [DEBUG] ftmod_libpri.c:1629 opening D-Channel #0 1:31<br>2011-06-09 02:07:00.596450 [NOTICE] switch_loadable_module.c:145 Adding Endpoint 'freetdm'<br>2011-06-09 02:07:00.596481 [NOTICE] switch_loadable_module.c:252 Adding Application 'disable_ec'<br>
2011-06-09 02:07:00.596510 [NOTICE] switch_loadable_module.c:252 Adding Application 'disable_dtmf'<br>2011-06-09 02:07:00.596530 [NOTICE] switch_loadable_module.c:252 Adding Application 'enable_dtmf'<br>2011-06-09 02:07:00.596552 [NOTICE] switch_loadable_module.c:274 Adding API Function 'ftdm'<br>
2011-06-09 02:07:00.618807 [DEBUG] ftmod_libpri.c:1586 -- Caught Event span 1 4 (CONFIG_ERR)<br>2011-06-09 02:07:00.622776 [NOTICE] switch_loadable_module.c:274 Adding API Function 'acl'<br>...later:<br>2011-06-09 02:07:01.693551 [DEBUG] ftmod_libpri.c:1586 -- Caught Event span 1 4 (CONFIG_ERR)<br>
2011-06-09 02:07:02.773590 [DEBUG] ftmod_libpri.c:1586 -- Caught Event span 1 4 (CONFIG_ERR)<br>2011-06-09 02:07:03.833629 [DEBUG] ftmod_libpri.c:1586 -- Caught Event span 1 4 (CONFIG_ERR)<br>2011-06-09 02:07:04.893667 [DEBUG] ftmod_libpri.c:146 TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)<br>
2011-06-09 02:07:05.962709 [DEBUG] ftmod_libpri.c:1586 -- Caught Event span 1 4 (CONFIG_ERR)<br>2011-06-09 02:07:07.982780 [DEBUG] ftmod_libpri.c:1586 -- Caught Event span 1 4 (CONFIG_ERR)<br>2011-06-09 02:07:10.002854 [DEBUG] ftmod_libpri.c:1586 -- Caught Event span 1 4 (CONFIG_ERR)<br>
...<br>making a call:<br>...<br>Dialplan: sofia/internal/<a href="mailto:1000@192.168.200.11">1000@192.168.200.11</a> Action bridge(freetdm/e1group/1/12345)<br>Dialplan: sofia/internal/<a href="mailto:1000@192.168.200.11">1000@192.168.200.11</a> Action answer()<br>
2011-06-09 02:10:27.343089 [DEBUG] mod_dptools.c:1063 sofia/internal/<a href="mailto:1000@192.168.200.11">1000@192.168.200.11</a> SET [RFC2822_DATE]=[Thu, 09 Jun 2011 02:10:27 +0600]<br>EXECUTE sofia/internal/<a href="mailto:1000@192.168.200.11">1000@192.168.200.11</a> bridge(freetdm/e1group/1/12345)<br>
2011-06-09 02:10:27.343089 [DEBUG] switch_ivr_originate.c:1869 Parsing global variables<br>2011-06-09 02:10:27.343089 [NOTICE] mod_freetdm.c:1551 Close Channel N/A [CS_NEW]<br>2011-06-09 02:10:27.343089 [DEBUG] switch_core_state_machine.c:457 () Running State Change CS_DESTROY<br>
2011-06-09 02:10:27.343089 [DEBUG] switch_core_state_machine.c:467 (N/A) State DESTROY<br>2011-06-09 02:10:27.343089 [DEBUG] switch_core_state_machine.c:467 (N/A) State DESTROY going to sleep<br>2011-06-09 02:10:27.343089 [ERR] switch_ivr_originate.c:2443 Cannot create outgoing channel of type [freetdm] cause: [NORMAL_CIRCUIT_CONGESTION]<br>
2011-06-09 02:10:27.343089 [DEBUG] switch_ivr_originate.c:3296 Originate Resulted in Error Cause: 34 [NORMAL_CIRCUIT_CONGESTION]<br><br>Why?<br><span id="result_box" class="short_text" lang="en"><span title="îÁÖÍÉÔÅ, ÞÔÏÂÙ Õ×ÉÄÅÔØ ÁÌØÔÅÒÎÁÔÉ×ÎÙÊ ÐÅÒÅ×ÏÄ" class="hps">Which means</span> <span title="îÁÖÍÉÔÅ, ÞÔÏÂÙ Õ×ÉÄÅÔØ ÁÌØÔÅÒÎÁÔÉ×ÎÙÊ ÐÅÒÅ×ÏÄ" class="hps">error</span>: </span>Caught Event span 1 4 (CONFIG_ERR)<br>
Which config???<br><br>