Summary: | ASTERISK-14562: DAHDI restart causes multiple 'dahdi_pri_error: Can't destroy call 0!' on console | ||
Reporter: | Alec Davis (alecdavis) | Labels: | |
Date Opened: | 2009-07-29 21:18:13 | Date Closed: | 2011-06-07 14:08:21 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_dahdi |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | using Congestion(0) in dialplan is appearing to leave pri channels unavailable. Causing a PRI restart when no channels are actually in use, causes multiple messages to appear on console as below. ! Unknown IE 50 (cs5, Unknown Information Element) -- Accepting call from '21496205' to '9147' on channel 0/31, span 1 -- Executing [9147@incoming:1] Congestion("DAHDI/31-1", "0") in new stack == Spawn extension (incoming, 9147, 1) exited non-zero on 'DAHDI/31-1' -- Hungup 'DAHDI/31-1' !! Unknown IE 50 (cs5, Unknown Information Element) -- Executing [9147@incoming:1] Congestion("DAHDI/31-1", "0") in new stack == Spawn extension (incoming, 9147, 1) exited non-zero on 'DAHDI/31-1' -- Hungup 'DAHDI/31-1' -- Accepting call from '21496205' to '' on channel 0/31, span 1 -- Restart on requested on entire span 1 [Jul 30 11:52:16] ERROR[27574]: chan_dahdi.c:10723 dahdi_pri_error: Can't destroy call 0! [Jul 30 11:52:16] ERROR[27574]: chan_dahdi.c:10723 dahdi_pri_error: Can't destroy call 0! I can only get it to happen when <u>Accepting call</u> happens after the Hangup. ****** ADDITIONAL INFORMATION ****** dialplan code: exten => _914X,1,Proceeding() exten => _914X,n,Congestion(0) | ||
Comments: | By: Alec Davis (alecdavis) 2009-07-29 23:32:28 Asterisk SVN-trunk-r209484 it gets much worse. DAHDI Version: 2.2.0 Echo Canceller: MG2 After the first execution of 'Congestion(0)' no further inbound calls can be made. dialplan is slightly different, as it's on another box. ;congestion exten => 8696,1,Congestion(0) Asterisk also segfaults, but with DON'T OPTIMIZE on, I get a core dump but it seems empty?? <b>BUT</b>: If compiled with DON'T OPTIMIZE, MALLOC DEBUG and DEBUG THREADS I get the following console output, thus am able to make multiple calls. !! Unknown IE 50 (cs5, Unknown Information Element) -- Executing [8696@incoming:1] Congestion("DAHDI/22-1", "0") in new stack == Spawn extension (incoming, 8696, 1) exited non-zero on 'DAHDI/22-1' -- Hungup 'DAHDI/22-1' [Jul 30 16:23:41] ERROR[17094]: /usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:733 __ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper): Error releasing mutex: Invalid argument [Jul 30 16:23:41] ERROR[17094]: /usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:599 __ast_pthread_mutex_lock: pbx.c line 9309 (pbx_builtin_setvar_helper): Error obtaining mutex: Invalid argument [Jul 30 16:23:41] ERROR[17094]: /usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:705 __ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper): mutex 'chan' freed more times than we've locked! [Jul 30 16:23:41] ERROR[17094]: /usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:733 __ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper): Error releasing mutex: Invalid argument -- Accepting call from '5604866' to '' on channel 0/22, span 1 !! Unknown IE 50 (cs5, Unknown Information Element) -- Executing [8696@incoming:1] Congestion("DAHDI/23-1", "0") in new stack == Spawn extension (incoming, 8696, 1) exited non-zero on 'DAHDI/23-1' -- Hungup 'DAHDI/23-1' [Jul 30 16:23:47] ERROR[17094]: /usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:733 __ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper): Error releasing mutex: Invalid argument [Jul 30 16:23:47] ERROR[17094]: /usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:599 __ast_pthread_mutex_lock: pbx.c line 9309 (pbx_builtin_setvar_helper): Error obtaining mutex: Invalid argument [Jul 30 16:23:47] ERROR[17094]: /usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:705 __ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper): mutex 'chan' freed more times than we've locked! [Jul 30 16:23:47] ERROR[17094]: /usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:733 __ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper): Error releasing mutex: Invalid argument -- Accepting call from '5604866' to '' on channel 0/23, span 1 !! Unknown IE 50 (cs5, Unknown Information Element) -- Executing [8696@incoming:1] Congestion("DAHDI/24-1", "0") in new stack == Spawn extension (incoming, 8696, 1) exited non-zero on 'DAHDI/24-1' -- Hungup 'DAHDI/24-1' [Jul 30 16:23:54] ERROR[17094]: /usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:733 __ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper): Error releasing mutex: Invalid argument [Jul 30 16:23:54] ERROR[17094]: /usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:599 __ast_pthread_mutex_lock: pbx.c line 9309 (pbx_builtin_setvar_helper): Error obtaining mutex: Invalid argument [Jul 30 16:23:54] ERROR[17094]: /usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:705 __ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper): mutex 'chan' freed more times than we've locked! [Jul 30 16:23:54] ERROR[17094]: /usr/src/pbx/june2009/asterisk-trunk/include/asterisk/lock.h:733 __ast_pthread_mutex_unlock: pbx.c line 9347 (pbx_builtin_setvar_helper): Error releasing mutex: Invalid argument -- Accepting call from '5604866' to '' on channel 0/24, span 1 By: Alec Davis (alecdavis) 2009-12-15 01:37:03.000-0600 Not having problem anymore anyway. So this can be closed. Believe this was fixed in ASTERISK-14598 current versions: Asterisk SVN-branch-1.6.1-r234932 libpri version: SVN-branch-1.4-r1249 DAHDI Version: 2.2.0 Echo Canceller: MG2 |