[Asterisk-cvs] asterisk/channels chan_zap.c,1.381,1.382

markster at lists.digium.com markster at lists.digium.com
Tue Nov 30 23:36:56 CST 2004


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

Modified Files:
	chan_zap.c 
Log Message:
Make sure we really have a bridged channel (bug #2963)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.381
retrieving revision 1.382
diff -u -d -r1.381 -r1.382
--- chan_zap.c	22 Nov 2004 18:59:19 -0000	1.381
+++ chan_zap.c	1 Dec 2004 04:35:34 -0000	1.382
@@ -5174,9 +5174,11 @@
 					p->subs[SUB_THREEWAY].owner;
 				struct zt_pvt *pbridge = NULL;
 				  /* set up the private struct of the bridged one, if any */
-				if (nbridge && ast_bridged_channel(nbridge)) pbridge = ast_bridged_channel(nbridge)->pvt->pvt;
-				if (nbridge && 
-				    (!strcmp(nbridge->type,"Zap")) &&
+				if (nbridge && ast_bridged_channel(nbridge)) 
+					pbridge = ast_bridged_channel(nbridge)->pvt->pvt;
+				if (nbridge && pbridge && 
+				    (!strcmp(nbridge->type,"Zap")) && 
+					(!strcmp(ast_bridged_channel(nbridge)->type, "Zap")) &&
 				    ISTRUNK(pbridge)) {
 					int func = ZT_FLASH;
 					/* Clear out the dial buffer */




More information about the svn-commits mailing list