[asterisk-dev] Show Channels Concise Deprecation in 1.6

Atis Lezdins atis at iq-labs.net
Fri Dec 5 12:20:53 CST 2008


On Fri, Dec 5, 2008 at 3:56 PM, Johansson Olle E <oej at edvina.net> wrote:
>
> 4 dec 2008 kl. 21.16 skrev Matt Riddell:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi,
>>
>> I'm just wanting to check up on a deprecation for the manager.
>>
>> Action: Command
>> Command: Show Channels Concise
>>
>> We use this pretty extensively to get a snapshot of where an Asterisk
>> server is at.  Is there any way this could not be removed or does
>> anyone
>> have a suggestion as to a replacement?
>>
>> If there is a suitable replacement then I guess this should have
>> been a
>> users post, but if not it's kinda to Russell et al requesting that the
>> deprecated status be removed.
>>
>> If people are dead set on it being removed would anyone have any
>> objection to me writing a manager command which provides this
>> information, and if not, any preferences as to response format?
>
> Getting the information you need in manager should never depend
> on CLI commands, as these are made only for the user on the console.
> They often strip data.
>
> Therefore we decided to not implement any more "concise" commands,
> deprecate the old and replace them with manager commands.
>
> Regardless of the status of the deprecation, I would recommend that
> you help us with the missing manager commands so that we can
> build better and more robust client apps using AMI.
>
> Cheers,
> /O
>

Hi,

If you need to see channel list often, and there are lot of clients
requesting the same over-and-over, i could suggest trying out this
patch

http://ftp.iq-labs.net/realtime_channels/asterisk_realtime_channels-1.4.19.patch

Currently i have it for 1.4 version, but if you're interested i could
scrape it out also from my 1.6-patchset.

It would keep up-to-date list of channels in database - a little
additional load upon creating/manipulating/destroying channel, however
it unloads from tons of requests to Asterisk. Also implementing this
did relieved us from deadlocks/crashes when "show channels concise"
tried to access locked channel, or one with broken pointer.

This probably is never going to Asterisk, as similar queue status
patch got rejected, but i'm keeping it up for my own use :)

Regards,
Atis

-- 
Atis Lezdins,
VoIP Project Manager / Developer,
IQ Labs Inc,
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835



More information about the asterisk-dev mailing list