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

Matt Jordan (JIRA) noreply at issues.asterisk.org
Wed Nov 20 15:52:03 CST 2013


Matt Jordan created ASTERISK-22872:
--------------------------------------

             Summary: 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
            Reporter: Matt Jordan


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