summaryrefslogtreecommitdiff
path: root/res/stasis/control.h
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2014-03-13 19:33:22 +0000
committerKinsey Moore <kmoore@digium.com>2014-03-13 19:33:22 +0000
commit5247a0d99078ecc0a108aba5ac24570f6f082f46 (patch)
tree521df3eb64904cac29e391a4c216d26fd5482dc6 /res/stasis/control.h
parent1b5c09897649fec6742136ac6a575cd6f286dd2b (diff)
ARI: Ensure managing application receives ChannelEnteredBridge messages
This fixes an issue where a Stasis application running over ARI and subscribed to ari/events could miss the ChannelEnteredBridge event because it did not subscribe to the new bridge fast enough. To accomplish this, it subscribes the application controlling the channel to the new bridge before adding it to that bridge which required the stasis_app_control structure to maintain a reference to the stasis_app. (closes issue ASTERISK-23295) Review: https://reviewboard.asterisk.org/r/3336/ ........ Merged revisions 410527 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@410528 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/stasis/control.h')
-rw-r--r--res/stasis/control.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/res/stasis/control.h b/res/stasis/control.h
index 042fc67bb..6b602e770 100644
--- a/res/stasis/control.h
+++ b/res/stasis/control.h
@@ -33,10 +33,12 @@
* \brief Create a control object.
*
* \param channel Channel to control.
+ * \param app stasis_app for which this control is being created.
+ *
* \return New control object.
* \return \c NULL on error.
*/
-struct stasis_app_control *control_create(struct ast_channel *channel);
+struct stasis_app_control *control_create(struct ast_channel *channel, struct stasis_app *app);
/*!
* \brief Dispatch all commands enqueued to this control.