[asterisk-dev] [Code Review] 3122: ARI: Add support for specifying channel variables during originate
opticron
reviewboard at asterisk.org
Mon Jan 13 11:09:41 CST 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3122/
-----------------------------------------------------------
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/20140113/1e6a8c3a/attachment-0001.html>
More information about the asterisk-dev
mailing list