[Home]

Summary:ASTERISK-16786: looped local channels, some not optimize out.
Reporter:Alec Davis (alecdavis)Labels:
Date Opened:2010-10-09 04:43:27Date Closed:2011-06-07 14:05:05
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_local
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) masquerade-loop.txt
Description:Looping many local channels to test optimizing, channels are not hungup, during the call as they should. Worse they don't after the test call has hungup.

They do clear if 'channel request hangup all' is issued at the CLI

Test dialplan is as below, and I'd dialled 10019.

[phones]
exten => 10000,1,Goto(echo-test,s,1)
exten => _1XXXX,1,Set(i=${MATH(${EXTEN}-1,int)})
exten => _1XXXX,n,Dial(Local/${i}@phones)


****** ADDITIONAL INFORMATION ******

asterix*CLI> core show channels concise
Local/10018@phones-9934;2!phones!10018!2!Up!Dial!Local/10017@phones!89!!!3!29!(None)!1286616882.7
Local/10012@phones-13e2;2!phones!10012!2!Up!Dial!Local/10011@phones!89!!!3!29!(None)!1286616882.19
Local/10015@phones-be25;2!phones!10015!2!Up!Dial!Local/10014@phones!89!!!3!29!(None)!1286616882.13
Local/10015@phones-be25;1<ZOMBIE>!phones!!1!Up!AppDial!(Outgoing Line)!10015!!!3!29!Local/10015@phones-be25;2!1286616882.14
Local/10018@phones-9934;1<ZOMBIE>!phones!!1!Up!AppDial!(Outgoing Line)!10018!!!3!29!Local/10018@phones-9934;2!1286616882.8
Local/10007@phones-ee76;1<ZOMBIE>!phones!!1!Up!AppDial!(Outgoing Line)!10007!!!3!29!Local/10007@phones-ee76;2!1286616882.30
Local/10008@phones-86b0;2!phones!10008!2!Up!Dial!Local/10007@phones!89!!!3!29!(None)!1286616882.27
Local/10000@phones-3c45;2!echo-test!s!4!Up!Echo!!89!!!3!42!(None)!1286616868.4
Local/10000@phones-447c;2!echo-test!s!4!Up!Echo!!89!!!3!29!(None)!1286616882.43
Local/10003@phones-b30f;1<ZOMBIE>!phones!!1!Up!AppDial!(Outgoing Line)!10003!!!3!29!Local/10003@phones-b30f;2!1286616882.38
Local/10003@phones-b30f;2!phones!10003!2!Up!Dial!Local/10002@phones!89!!!3!29!(None)!1286616882.37
Local/10012@phones-13e2;1<ZOMBIE>!phones!!1!Up!AppDial!(Outgoing Line)!10012!!!3!29!Local/10012@phones-13e2;2!1286616882.20
Local/10007@phones-ee76;2!phones!10007!2!Up!Dial!Local/10006@phones!89!!!3!29!(None)!1286616882.29
Local/10008@phones-86b0;1<ZOMBIE>!phones!!1!Up!AppDial!(Outgoing Line)!10008!!!3!29!Local/10008@phones-86b0;2!1286616882.28


asterix*CLI> channel request hangup all
Requested Hangup on channel 'Local/10018@phones-9934;2'
Requested Hangup on channel 'Local/10012@phones-13e2;2'
Requested Hangup on channel 'Local/10015@phones-be25;2'
Requested Hangup on channel 'Local/10015@phones-be25;1<ZOMBIE>'
Requested Hangup on channel 'Local/10007@phones-ee76;1<ZOMBIE>'
Requested Hangup on channel 'Local/10008@phones-86b0;2'
Requested Hangup on channel 'Local/10000@phones-3c45;2'
Requested Hangup on channel 'Local/10000@phones-447c;2'
Requested Hangup on channel 'Local/10003@phones-b30f;1<ZOMBIE>'
Requested Hangup on channel 'Local/10003@phones-b30f;2'
Requested Hangup on channel 'Local/10007@phones-ee76;2'
Requested Hangup on channel 'Local/10008@phones-86b0;1<ZOMBIE>'
 == Spawn extension (phones, 10018, 2) exited non-zero on 'Local/10018@phones-9934;2'
 == Spawn extension (echo-test, s, 4) exited non-zero on 'Local/10000@phones-3c45;2'
 == Spawn extension (echo-test, s, 4) exited non-zero on 'Local/10000@phones-447c;2'
 == Spawn extension (phones, 10015, 2) exited non-zero on 'Local/10015@phones-be25;2'
 == Spawn extension (phones, 10012, 2) exited non-zero on 'Local/10012@phones-13e2;2'
 == Spawn extension (phones, 10008, 2) exited non-zero on 'Local/10008@phones-86b0;2'
 == Spawn extension (phones, 10003, 2) exited non-zero on 'Local/10003@phones-b30f;2'
 == Spawn extension (phones, 10007, 2) exited non-zero on 'Local/10007@phones-ee76;2'
asterix*CLI> core show channels concise


Comments:By: Alec Davis (alecdavis) 2010-10-09 05:18:29

Uploaded masquerade-loop.txt which is console output of multiple instances of local channels which are unable to be hangup.

asterix*CLI> core show threads
0xb2387b90 pbx_thread           started at [ 5007] pbx.c ast_pbx_start()
0xb25abb90 pbx_thread           started at [ 5007] pbx.c ast_pbx_start()
0xb26d7b90 pbx_thread           started at [ 5007] pbx.c ast_pbx_start()
....
0xb2713b90 pbx_thread           started at [ 5007] pbx.c ast_pbx_start()
0xb2623b90 pbx_thread           started at [ 5007] pbx.c ast_pbx_start()
0xb2803b90 pbx_thread           started at [ 5007] pbx.c ast_pbx_start()
0xb27c7b90 pbx_thread           started at [ 5007] pbx.c ast_pbx_start()
25 of them!

asterix*CLI> core show channels concise
Local/10015@phones-0806;1!phones!!1!Up!AppDial!(Outgoing Line)!10016!!!3!74!Local/10016@phones-2c65;2!1286617806.123

Local/10016@phones-2c65;2!phones!10016!2!Up!Dial!Local/10015@phones!89!!!3!74!Local/10015@phones-0806;1!1286617806.122

I did however get many "..Exceptionally long queue length queuing to Local/10026@phones-5508;1"

[2010-10-09 22:50:14.428058] WARNING[3337]: channel.c:1466 __ast_queue_frame: Exceptionally long queue length queuing to Local/10026@phones-5508;1
[2010-10-09 22:50:14.429180] WARNING[3337]: channel.c:1466 __ast_queue_frame: Exceptionally long queue length queuing to Local/10026@phones-5508;1
[2010-10-09 22:50:14.429529] WARNING[3337]: channel.c:1466 __ast_queue_frame: Exceptionally long queue length queuing to Local/10026@phones-5508;1
[2010-10-09 22:50:14.429733] WARNING[3337]: channel.c:1466 __ast_queue_frame: Exceptionally long queue length queuing to Local/10026@phones-5508;1
[2010-10-09 22:50:14.429939] WARNING[3337]: channel.c:1466 __ast_queue_frame: Exceptionally long queue length queuing to Local/10026@phones-5508;1
[2010-10-09 22:50:14.434162] WARNING[3337]: channel.c:1466 __ast_queue_frame: Exceptionally long queue length queuing to Local/10026@phones-5508;1

By: Alec Davis (alecdavis) 2010-10-09 05:34:44

Oops, forgot I was testing https://reviewboard.asterisk.org/r/740/
closing this issue.