ARI: Support channel variables in originate
authorKinsey Moore <kmoore@digium.com>
Tue, 21 Jan 2014 14:27:21 +0000 (14:27 +0000)
committerKinsey Moore <kmoore@digium.com>
Tue, 21 Jan 2014 14:27:21 +0000 (14:27 +0000)
commit1590d32ab0a5b6797c96244a47f18f868574e970
tree3cc0717778b4d2b816ba4df12bb76a75716631b3
parent4bc84b1b9f25b6bdfab7daef9c08000fb31d5a43
ARI: Support channel variables in originate

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.

(closes issue ASTERISK-23051)
Review: https://reviewboard.asterisk.org/r/3122/
Reported by: Matt Jordan
........

Merged revisions 406003 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@406006 65c4cc65-6c06-0410-ace0-fbb531ad65f3
23 files changed:
res/ari/resource_applications.h
res/ari/resource_asterisk.h
res/ari/resource_bridges.h
res/ari/resource_channels.c
res/ari/resource_channels.h
res/ari/resource_device_states.h
res/ari/resource_mailboxes.h
res/ari/resource_playbacks.h
res/ari/resource_sounds.h
res/res_ari_applications.c
res/res_ari_asterisk.c
res/res_ari_bridges.c
res/res_ari_channels.c
res/res_ari_device_states.c
res/res_ari_mailboxes.c
res/res_ari_playbacks.c
res/res_ari_sounds.c
rest-api-templates/ari_resource.h.mustache
rest-api-templates/asterisk_processor.py
rest-api-templates/body_parsing.mustache [new file with mode: 0644]
rest-api-templates/param_parsing.mustache
rest-api-templates/res_ari_resource.c.mustache
rest-api/api-docs/channels.json