The Asterisk Status command allows you to send multiple requests for channel variables, separated by commas. So something like this sent to the AMI console:
Action: Status
ActionID: 2
Variables: CDR(ds_type),from_user,companyID
I'd expect the Variable key to itself contain a map with key/values. Instead it returns just a single String value "companyID=Test". I expect when this was designed, multiple headers with the same key weren't taken into account.
I did try briefly to fix this myself, but quickly realized the lexer took more effort in understanding that I wanted to try to understand in an hour or two.
Is there some way to get this to work properly (i.e. I'm using the send_action command or the resultant response incorrectly), or is this a bug?
The Asterisk Status command allows you to send multiple requests for channel variables, separated by commas. So something like this sent to the AMI console:
Returning something like this:
When I use RubyAMI to do this, I only get only one of the Variables in the repsonse
returns a map, but with only one value in the map for Variable:
I'd expect the Variable key to itself contain a map with key/values. Instead it returns just a single String value "companyID=Test". I expect when this was designed, multiple headers with the same key weren't taken into account.
I did try briefly to fix this myself, but quickly realized the lexer took more effort in understanding that I wanted to try to understand in an hour or two.
Is there some way to get this to work properly (i.e. I'm using the send_action command or the resultant response incorrectly), or is this a bug?