[asterisk-users] how to get full channel name - AMI cuts off [solved]

Matthew Jordan mjordan at digium.com
Thu Jan 30 21:08:44 CST 2014


On Thu, Jan 30, 2014 at 5:48 PM, Justin Killen
<jkillen at allamericanasphalt.com> wrote:
> After posting this, I ran across 'core channel show concise', which gives
> the data in a more machine friendly format.
>
>

That may work over AMI, but in general, it isn't recommended. The
command class authorization, EVENT_CLASS_COMMAND, is relatively
powerful and shouldn't be exposed to a general AMI action without a
lot of forethought. What's more, CLI commands are generally viewed as
being appropriate for end users, and not programs controlling
Asterisk. While 'core show channels concise' is unlikely to change in
future versions, it certainly isn't versioned in the same fashion as
AMI events/actions.

If you need to get a dump of all active channels in the system over
AMI, I'd recommend the CoreShowChannels AMI action [1]. It will send
the information back for each channel as an event, and doesn't require
the same level of permission as the corresponding CLI command.

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+ManagerAction_CoreShowChannels

Matt



More information about the asterisk-users mailing list