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
Showing
- res/ari/resource_applications.h 22 additions, 0 deletionsres/ari/resource_applications.h
- res/ari/resource_asterisk.h 33 additions, 0 deletionsres/ari/resource_asterisk.h
- res/ari/resource_bridges.h 66 additions, 0 deletionsres/ari/resource_bridges.h
- res/ari/resource_channels.c 49 additions, 0 deletionsres/ari/resource_channels.c
- res/ari/resource_channels.h 134 additions, 0 deletionsres/ari/resource_channels.h
- res/ari/resource_device_states.h 11 additions, 0 deletionsres/ari/resource_device_states.h
- res/ari/resource_mailboxes.h 11 additions, 0 deletionsres/ari/resource_mailboxes.h
- res/ari/resource_playbacks.h 11 additions, 0 deletionsres/ari/resource_playbacks.h
- res/ari/resource_sounds.h 11 additions, 0 deletionsres/ari/resource_sounds.h
- res/res_ari_applications.c 82 additions, 64 deletionsres/res_ari_applications.c
- res/res_ari_asterisk.c 77 additions, 46 deletionsres/res_ari_asterisk.c
- res/res_ari_bridges.c 190 additions, 128 deletionsres/res_ari_bridges.c
- res/res_ari_channels.c 294 additions, 165 deletionsres/res_ari_channels.c
- res/res_ari_device_states.c 16 additions, 5 deletionsres/res_ari_device_states.c
- res/res_ari_mailboxes.c 20 additions, 9 deletionsres/res_ari_mailboxes.c
- res/res_ari_playbacks.c 16 additions, 5 deletionsres/res_ari_playbacks.c
- res/res_ari_sounds.c 20 additions, 9 deletionsres/res_ari_sounds.c
- rest-api-templates/ari_resource.h.mustache 13 additions, 0 deletionsrest-api-templates/ari_resource.h.mustache
- rest-api-templates/asterisk_processor.py 2 additions, 0 deletionsrest-api-templates/asterisk_processor.py
- rest-api-templates/body_parsing.mustache 71 additions, 0 deletionsrest-api-templates/body_parsing.mustache
Loading
Please register or sign in to comment