aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk/channel.h')
-rwxr-xr-xinclude/asterisk/channel.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index a754129f6..a964ea93a 100755
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -93,8 +93,9 @@ struct ast_channel {
/*! Whether or not the generator should be interrupted by write */
int writeinterrupt;
- /*! Who are we bridged to, if we're bridged */
- struct ast_channel *bridge;
+ /*! Who are we bridged to, if we're bridged Do not access directly,
+ use ast_bridged_channel(chan) */
+ struct ast_channel *_bridge;
/*! Who did we call? */
struct ast_channel *dialed;
/*! Who called us? */
@@ -815,6 +816,9 @@ int ast_transfer(struct ast_channel *chan, char *dest);
int ast_do_masquerade(struct ast_channel *chan);
+/* Find bridged channel */
+struct ast_channel *ast_bridged_channel(struct ast_channel *chan);
+
/* Misc. functions below */
/* Helper function for migrating select to poll */