summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-10-23 12:19:47 +0000
committerMark Spencer <markster@digium.com>2004-10-23 12:19:47 +0000
commite21ed1865bf0c5f3325811f30aff54c27127b885 (patch)
tree43e47efe6f89f32ec12ee1d4588a8315ce8a3fe3 /include
parent9235f8bda385688e653c2869684de5d9ffffe6f9 (diff)
First pass at making transfer work within agent (not tested, shouldn't break anything that currently worked)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4061 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/channel.h8
-rwxr-xr-xinclude/asterisk/channel_pvt.h2
2 files changed, 8 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 */
diff --git a/include/asterisk/channel_pvt.h b/include/asterisk/channel_pvt.h
index 97a48f902..4343f09e9 100755
--- a/include/asterisk/channel_pvt.h
+++ b/include/asterisk/channel_pvt.h
@@ -69,6 +69,8 @@ struct ast_channel_pvt {
int (*transfer)(struct ast_channel *chan, char *newdest);
/*! Write a frame, in standard format */
int (*write_video)(struct ast_channel *chan, struct ast_frame *frame);
+ /*! Find bridged channel */
+ struct ast_channel * (*bridged_channel)(struct ast_channel *chan, struct ast_channel *bridge);
};
//! Create a channel structure