[Home]

Summary:ASTERISK-18701: Sorting of core show channels verbose
Reporter:rsw686 (rsw686)Labels:
Date Opened:2011-10-10 10:57:48Date Closed:2011-10-10 12:18:17
Priority:TrivialRegression?Yes
Status:Closed/CompleteComponents:Core/Channels
Versions:1.8.7.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:In 1.6.1.18 core show channels verbose was sorted by duration ascending. The bridged to channel was also shown directly below the origination channel. In 1.8.7 the order looks be random. I have to scan the channel list to find related channels and channels by duration.
Comments:By: Richard Mudgett (rmudgett) 2011-10-10 12:18:17.274-0500

Asterisk v1.8 changed the ast_channel to an ao2 object and the channel list to an ao2 container.  The channel container stores the channels using a hash of the channel name and is not sorted.

By: rsw686 (rsw686) 2011-10-10 12:24:35.156-0500

From a user standpoint the output of the command has changed. You don't think it would be a good idea to sort on display of core show channels verbose? For debugging purposes the current output is harder to read than the previous sorted output.

By: Richard Mudgett (rmudgett) 2011-10-10 13:47:45.627-0500

The channel list was not sorted before.  All new channels were simply added to the head of the channel list.

There were performance and stability gains as a result of the change to ao2 objects.