summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2013-06-05 18:07:23 +0000
committerMark Michelson <mmichelson@digium.com>2013-06-05 18:07:23 +0000
commit4789c3fb0c956b5de4e5bee190dd7252f12c0b2b (patch)
tree3553219f1519131a8d4098cae5d47b3876f1b213 /include/asterisk
parentfb6344e2492c87e90644f63380932b9fa6536fb0 (diff)
Change the remove_on_pull flag on ast_bridge_hook to be a set of flags.
This change is used to make bridge hook removal more generic. This way, depending on the circumstance, the appropriate bridge hooks may be removed. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@390510 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/bridging_features.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/asterisk/bridging_features.h b/include/asterisk/bridging_features.h
index bb792a815..0292a6b35 100644
--- a/include/asterisk/bridging_features.h
+++ b/include/asterisk/bridging_features.h
@@ -180,6 +180,11 @@ struct ast_bridge_hook_timer {
unsigned int seqno;
};
+enum ast_bridge_hook_remove_flags {
+ /*! The hook is removed when the channel is pulled from the bridge. */
+ AST_BRIDGE_HOOK_REMOVE_ON_PULL,
+};
+
/* BUGBUG Need to be able to selectively remove DTMF, hangup, and interval hooks. */
/*! \brief Structure that is the essence of a feature hook. */
struct ast_bridge_hook {
@@ -191,8 +196,8 @@ struct ast_bridge_hook {
ast_bridge_hook_pvt_destructor destructor;
/*! Unique data that was passed into us */
void *hook_pvt;
- /*! TRUE if the hook is removed when the channel is pulled from the bridge. */
- unsigned int remove_on_pull:1;
+ /*! Flags determining when hooks should be removed from a bridge channel */
+ struct ast_flags remove_flags;
/*! Extra hook parameters. */
union {
/*! Extra parameters for a DTMF feature hook. */