[asterisk-dev] [Code Review] 3122: ARI: Add support for specifying channel variables during originate

Kevin Harwell reviewboard at asterisk.org
Fri Jan 17 12:38:00 CST 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3122/#review10625
-----------------------------------------------------------



branches/12/res/ari/resource_channels.c
<https://reviewboard.asterisk.org/r/3122/#comment20125>

    I'm sure you looked into this, but is there no way to have this block of code in the auto generated file res_ari_channels.c?  I'm guessing the answer is no as this is probably the crux of the problem, but figured I'd ask :-)



branches/12/res/res_ari_channels.c
<https://reviewboard.asterisk.org/r/3122/#comment20124>

    Is this line auto generated or did you have to manually enter it?  I know the file is and it would be a shame to have to manually edit that file from here on out.


- Kevin Harwell


On Jan. 13, 2014, 11:09 a.m., opticron wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3122/
> -----------------------------------------------------------
> 
> (Updated Jan. 13, 2014, 11:09 a.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Bugs: ASTERISK-23051
>     https://issues.asterisk.org/jira/browse/ASTERISK-23051
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> This adds back in support for specifying channel variables during an originate without compromising the ability to specify query parameters in the JSON body. This was accomplished by generating the body-parsing code in a separate function instead of being integrated with the URI query parameter parsing code such that it could be called by paths with body parameters. This is transparent to the user of the API and prevents manual duplication of code or data structures.
> 
> 
> Diffs
> -----
> 
>   branches/12/rest-api/api-docs/channels.json 405252 
>   branches/12/rest-api-templates/res_ari_resource.c.mustache 405252 
>   branches/12/rest-api-templates/param_parsing.mustache 405252 
>   branches/12/rest-api-templates/body_parsing.mustache PRE-CREATION 
>   branches/12/rest-api-templates/asterisk_processor.py 405252 
>   branches/12/rest-api-templates/ari_resource.h.mustache 405252 
>   branches/12/res/res_ari_sounds.c 405252 
>   branches/12/res/res_ari_playbacks.c 405252 
>   branches/12/res/res_ari_device_states.c 405252 
>   branches/12/res/res_ari_channels.c 405252 
>   branches/12/res/res_ari_bridges.c 405252 
>   branches/12/res/res_ari_asterisk.c 405252 
>   branches/12/res/res_ari_applications.c 405252 
>   branches/12/res/ari/resource_sounds.h 405252 
>   branches/12/res/ari/resource_playbacks.h 405252 
>   branches/12/res/ari/resource_device_states.h 405252 
>   branches/12/res/ari/resource_channels.c 405252 
>   branches/12/res/ari/resource_channels.h 405252 
>   branches/12/res/ari/resource_bridges.h 405252 
>   branches/12/res/ari/resource_asterisk.h 405252 
>   branches/12/res/ari/resource_applications.h 405252 
> 
> Diff: https://reviewboard.asterisk.org/r/3122/diff/
> 
> 
> Testing
> -------
> 
> Tested with a slightly modified originate_with_vars test created for the original functionality by Kevin Harwell.
> 
> 
> Thanks,
> 
> opticron
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140117/7120c4cc/attachment-0001.html>


More information about the asterisk-dev mailing list