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

Matt DiMeo (JIRA) noreply at issues.asterisk.org
Wed Jan 29 16:05:03 CST 2014


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

Matt DiMeo commented on ASTERISK-23051:
---------------------------------------

I just noticed Kevin Harwell's Dec 13 comment.  If the variables are being set after the originate, will that cause problems with variables not being correctly __ propagated to the far side of a local channel bridge?

-m@
                
> ARI: channel variables in JSON breaks passing parameters in JSON
> ----------------------------------------------------------------
>
>                 Key: ASTERISK-23051
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23051
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_ari
>    Affects Versions: 12.0.0
>            Reporter: Matt Jordan
>            Assignee: Kinsey Moore
>            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