[asterisk-bugs] [JIRA] Commented: (ASTERISK-20245) Asterisk manager output for command "Action:queues" is inconsistent from other commands.

Matt Jordan (JIRA) noreply at issues.asterisk.org
Thu Aug 23 16:08:07 CDT 2012


    [ https://issues.asterisk.org/jira/browse/ASTERISK-20245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=196133#comment-196133 ] 

Matt Jordan commented on ASTERISK-20245:
----------------------------------------

Normally this would be a feature request, as its an improvement to an already existing feature.  That would mean that it would require a patch in order to live on the issue tracker.

As it is, lets face it: this is pretty stupid.  The queue information should come back in standard AMI event form.  However, since modifying the return of this command would be a breaking change, this can only happen in Asterisk trunk, and it'd be best if it was done in conjunction with some other AMI changes such that when we bump the AMI version, we do so for a large number of legitimate reasons.


> Asterisk manager output for command "Action:queues" is inconsistent from other commands.
> ----------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-20245
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20245
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Core/ManagerInterface
>    Affects Versions: 1.8.14.0
>         Environment: FreePBX 2.10.1.1 based on CentOS 5.8 final
>            Reporter: Ron Gage
>            Severity: Minor
>
> This is reference the management interface over TCP/5038
> With the apparent sole exception of the "Action:queues" command, every command that returns data does so in a key:value format.  For example - an excerpt from the Action:SipPeers command:
> Event: PeerEntry
> Channeltype: SIP
> ObjectName: 213
> ChanObjectType: peer
> IPaddress: 10.15.3.74
> IPport: 5060
> Dynamic: yes
> Forcerport: no
> VideoSupport: no
> TextSupport: no
> ACL: yes
> Status: OK (3 ms)
> RealtimeDevice: no
> With the Action:Queues command, you get an entirely different (and much harder to parse) format:
> 0157 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:1, SL:0.0% within 300s
>    Members:
>       Ron (Local/200 at from-queue/n) (dynamic) (Not in use) has taken no calls yet
>    No Callers
> default has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s
>    No Members
>    No Callers
> Please either fix the Queues command to provide an output consistent with other commands in the AMI or provide a method to toggle the output format of this command.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list