]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ari/resource_channels: Add channel variables earlier in the creation process
authorMatthew Jordan <mjordan@digium.com>
Tue, 11 Feb 2014 03:16:18 +0000 (03:16 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 11 Feb 2014 03:16:18 +0000 (03:16 +0000)
commit2b080d139b30d1858b97b98bc5451017d32b001b
treea5c9d50b41e16e17603f0fa62b9ad0620421beac
parent4a4d8f7ab580b228a117acd5ac50f9fa2656916a
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/

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