ari/resource_channels: Add channel variables earlier in the creation process
authorMatthew Jordan <mjordan@digium.com>
Tue, 11 Feb 2014 03:18:25 +0000 (03:18 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 11 Feb 2014 03:18:25 +0000 (03:18 +0000)
commit0ebbeac69fb8a407ea8d5e434efefb12e80fb596
tree8aa8a730b825cd78b49fc88ab2e0392ed7f1ea73
parentcb4e2107735dc05c1ad96b6a955c056e06b8dc1c
ari/resource_channels: Add channel variables earlier in the creation process

This patch tweaks the behaviour of POST /channels with channel variables such
that the variables are passed into the pbx.c routines that perform the
origination. This allows the variables to be assigned to the newly created
channels immediately upon their construction, as opposed to be assigned after
the originate has completed.

The upshot of this is that the variables are available on the channels if
they execute in the dialplan, as opposed to only being available once the
channels are answered.

Review: https://reviewboard.asterisk.org/r/3183/
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@407940 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/ari/resource_channels.c