[asterisk-bugs] [JIRA] (ASTERISK-23052) ARI: channel variables in JSON breaks passing parameters in JSON

Matt Jordan (JIRA) noreply at issues.asterisk.org
Fri Dec 20 15:43:03 CST 2013


Matt Jordan created ASTERISK-23052:
--------------------------------------

             Summary: ARI: channel variables in JSON breaks passing parameters in JSON
                 Key: ASTERISK-23052
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23052
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Resources/res_ari
    Affects Versions: 12.0.0
            Reporter: Matt Jordan
            Severity: Critical


So, since the variables thing was added to the ARI call origination, it now acts differently from all the other calls.

The other POST calls can all take their parameters as either url params or from an application/json body document.

Unfortunately, the post body of the originate (POST /ari/channels) behaves differently; fields passed in the JSON object are treated as variable names, not as parameters.  For this one call, you must pass parameters in the URL.

Ideally, this would have been just:
{noformat}
     { "endpoint": "SIP/200", ..... "variables":  { "name1": "value1", "name2": "value2"} }
{noformat}



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list