[asterisk-bugs] [JIRA] (ASTERISK-22872) ARI: Allow specifying channel variables during a POST /channels

Kevin Harwell (JIRA) noreply at issues.asterisk.org
Fri Dec 13 11:21:03 CST 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-22872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Harwell closed ASTERISK-22872.
------------------------------------

    Resolution: Fixed
    
> ARI: Allow specifying channel variables during a POST /channels
> ---------------------------------------------------------------
>
>                 Key: ASTERISK-22872
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22872
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Resources/res_ari
>            Reporter: Matt Jordan
>            Assignee: Kevin Harwell
>
> When originating a channel using {{POST /channels}}, by the time you get the channel into your ARI application, it may be too late to set needed variables/properties. This can especially be true for things like caller ID/CDR information.
> When creating the channel, we should be able to set variables on that channel. This can be done as a query parameter to the REST call, and should allow for multiple variables to be specified:
> {noformat}
> POST /channels?endpoint=foo&variables={"variable1": "foo", "variable2": "bar"}
> {noformat}
> Or
> {noformat}
> POST /channels?endpoint=foo&variables={"CALLERID(name)": "foo", "CDR(accountcode)": "local1"}
> {noformat}
> Note that the variables will be specified in JSON. We'll need to validate that values to ensure that we aren't passed structured data.

--
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