Re: [asterisk-users] how to get full channel name - AMI cuts off
On Thu, Jan 30, 2014 at 5:45 PM, Justin Killen jkil...@allamericanasphalt.com wrote: 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 Since you are using AMI, use the AMI CoreShowChannels action instead of the AMI Command action to run the CLI core show channels command. Use: Action: CoreShowChannels ActionID: your-optional-id Instead of: Action: Command ActionID: your-optional-id Command: core show channels Using the AMI CoreShowChannels action will give you more information as well as not truncating long strings. It is also the recommended way to get that information. Richard -- _ -- 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
[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 -- _ -- 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
Re: [asterisk-users] how to get full channel name - AMI cuts off [solved]
After posting this, I ran across 'core channel show concise', which gives the data in a more machine friendly format. -Justin From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@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 -- _ -- 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
Re: [asterisk-users] how to get full channel name - AMI cuts off [solved]
On Thu, Jan 30, 2014 at 5:48 PM, Justin Killen jkil...@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 -- _ -- 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