[asterisk-bugs] [Asterisk 0011181]: Manager API hangs on "Command: show channels"

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Jan 15 11:08:42 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11181 
====================================================================== 
Reported By:                acunningham
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11181
Category:                   Core/ManagerInterface
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.13  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-07-2007 07:02 CST
Last Modified:              01-15-2008 11:08 CST
====================================================================== 
Summary:                    Manager API hangs on "Command: show channels"
Description: 
If a client connects to the manager API, and does the following:

Action: Command
Command: show channels

That manager API session hangs indefinitely. Both "show channels" and
"show channels concise" are affected, but other commands such as "core set
verbose 9" are not. This affects both Asterisk 1.4.11 and 1.4.13, and
possibly other versions as well.
====================================================================== 

---------------------------------------------------------------------- 
 scashon - 01-15-08 11:08  
---------------------------------------------------------------------- 
Have the same problem in 1.4.17.

We have a manager connection which runs frequent 'show channels concise'
commands. After many of these (hundreds?) sometimes the commands timeout. 

Once this happens output on the console is affected as well, but only once
a 'show channels' command is issued. Other commands don't seem to be
affected initially, but once a show channels is issued everything stops
working. Call processing does not seem to be affected.

We can exit the console and go back in (asterisk -r) and the show channels
will work exactly once. Subsequent show channels commands brings everything
to a stop again:

phlast1*CLI> show channels concise
phlast1*CLI> set verbose 0
phlast1*CLI> set verbose 10
phlast1*CLI> show parkedcalls
phlast1*CLI> exit
[xxxx at phlast1 ~]# asterisk -r
Asterisk 1.4.17, Copyright (C) 1999 - 2007 Digium, Inc. and others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for
details.
This is free software, with components licensed under the GNU General
Public
License version 2 and other licenses; you are welcome to redistribute it
under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.4.17 currently running on phlast1 (pid = 6847)
phlast1*CLI> set verbose 0
Verbosity is now OFF
phlast1*CLI> show parkedcalls
 Num                   Channel (Context         Extension    Pri ) Timeout

0 parked calls.
phlast1*CLI> core show channels concise
SIP/xxxxx-09bc62e0!xxxxx!2147!1!Ringing!AppDial!(Outgoing
Line)!2147!xxxxxxxxxx_3101!3!0!(None)
SIP/xxxxx-b78289c0!xxxxx!2147!5!Ring!Dial!xxxxxxx| 20|
tT!3101!0xxxxxxxxx!3!0!(None)
SIP/xxxxx-09977450!xxxxx!8188!1!Ringing!AppDial!(Outgoing
Line)!8188!!3!0!(None)
SIP/xxxxx-b782a010!xxxxx!8188!22!Ring!Dial!SIP/xxxxxxxx|
24|t!xxxxxx!!3!0!(None)

phlast1*CLI> core show channels concise
phlast1*CLI> set verbose 10
phlast1*CLI> show parked calls
phlast1*CLI> 

[ Showing console commands not working, exiting and then commands working
(including show channels, once) until a show channels is issued. ]

I am able to do a 'core show locks', I'll upload that next...
tsc 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-15-08 11:08  scashon        Note Added: 0076982                          
======================================================================




More information about the asterisk-bugs mailing list