Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
jkillen at allamerican...
Guest





PostPosted: Thu Jan 30, 2014 6:47 pm    Post subject: [asterisk-users] how to get full channel name - AMI cuts off Reply with quote

After posting this, I ran across ‘core channel show concise’, which gives the data in a more machine friendly format.

-Justin



From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Justin Killen
Sent: Thursday, January 30, 2014 3:45 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] how to get full channel name - AMI cuts off


Using Dahdi/PRI, I end up with channel names like ‘DAHDI/i8/9995551212-4d6B’, but when I do a ‘core show channels’ it cuts off those names to only ‘DAHDI/i8/9995551212-‘. This is the same for AMI.

Is there a way to get the full channel name within AMI?

I’m using asterisk 11.7.0



Thanks,
-Justin
Back to top
mjordan at digium.com
Guest





PostPosted: Thu Jan 30, 2014 10:07 pm    Post subject: [asterisk-users] how to get full channel name - AMI cuts off Reply with quote

On Thu, Jan 30, 2014 at 5:48 PM, Justin Killen
<jkillen@allamericanasphalt.com> wrote:
Quote:
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

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services