[Asterisk-cvs] asterisk channel.c,1.237,1.238

kpfleming kpfleming
Wed Aug 31 20:09:43 CDT 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv31389

Modified Files:
	channel.c 
Log Message:
eliminate old chan->pvt field, and fix bug in generic bridge to watch chan->tech_pvt instead


Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.237
retrieving revision 1.238
diff -u -d -r1.237 -r1.238
--- channel.c	31 Aug 2005 22:12:23 -0000	1.237
+++ channel.c	1 Sep 2005 00:10:49 -0000	1.238
@@ -2895,25 +2895,25 @@
 	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 */




More information about the svn-commits mailing list