summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-09-01 00:10:49 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-09-01 00:10:49 +0000
commite04ba4a11f62d78ae62c217a4452db7372272950 (patch)
tree5aa93ec92fd92bdce21f09c68469a253a6918e6a
parentfc91dd1035f5f33f14b397c89b79f11bb91ca079 (diff)
eliminate old chan->pvt field, and fix bug in generic bridge to watch chan->tech_pvt instead
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-xchannel.c8
-rwxr-xr-xinclude/asterisk/channel.h2
2 files changed, 4 insertions, 6 deletions
diff --git a/channel.c b/channel.c
index 7f94cde5b..56f889b44 100755
--- a/channel.c
+++ b/channel.c
@@ -2895,25 +2895,25 @@ static enum ast_bridge_result ast_generic_bridge(int *playitagain, int *playit,
int to;
struct ast_frame *f;
struct ast_channel *who = NULL;
- void *pvt0, *pvt1;
enum ast_bridge_result res = AST_BRIDGE_COMPLETE;
int o0nativeformats;
int o1nativeformats;
long elapsed_ms=0, time_left_ms=0;
int watch_c0_dtmf;
int watch_c1_dtmf;
+ void *pvt0, *pvt1;
cs[0] = c0;
cs[1] = c1;
- pvt0 = c0->pvt;
- pvt1 = c1->pvt;
+ pvt0 = c0->tech_pvt;
+ pvt1 = c1->tech_pvt;
o0nativeformats = c0->nativeformats;
o1nativeformats = c1->nativeformats;
watch_c0_dtmf = config->flags & AST_BRIDGE_DTMF_CHANNEL_0;
watch_c1_dtmf = config->flags & AST_BRIDGE_DTMF_CHANNEL_1;
for (;;) {
- if ((c0->pvt != pvt0) || (c1->pvt != pvt1) ||
+ if ((c0->tech_pvt != pvt0) || (c1->tech_pvt != pvt1) ||
(o0nativeformats != c0->nativeformats) ||
(o1nativeformats != c1->nativeformats)) {
/* Check for Masquerade, codec changes, etc */
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index 40f686784..49372b77b 100755
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -289,8 +289,6 @@ struct ast_channel {
char dtmfq[AST_MAX_EXTENSION];
/*! DTMF frame */
struct ast_frame dtmff;
- /*! Private channel implementation details */
- struct ast_channel_pvt *pvt;
/*! PBX private structure */
struct ast_pbx *pbx;