[Asterisk-cvs] asterisk/channels chan_zap.c,1.410,1.411

mattf at lists.digium.com mattf at lists.digium.com
Wed Mar 2 10:12:07 CST 2005


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

Modified Files:
	chan_zap.c 
Log Message:
Commiting chan_zap.c patch for 2bct


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.410
retrieving revision 1.411
diff -u -d -r1.410 -r1.411
--- chan_zap.c	28 Feb 2005 00:18:28 -0000	1.410
+++ chan_zap.c	2 Mar 2005 16:09:27 -0000	1.411
@@ -2626,6 +2626,11 @@
 	int oi1, oi2, i1 = -1, i2 = -1, t1, t2;
 	int os1 = -1, os2 = -1;
 	struct ast_channel *oc1, *oc2;
+#ifdef PRI_2BCT
+	int triedtopribridge = 0;
+	q931_call *q931c0 = NULL, *q931c1 = NULL;
+#endif
+
 
 	/* if need DTMF, cant native bridge */
 	if (flags & (AST_BRIDGE_DTMF_CHANNEL_0 | AST_BRIDGE_DTMF_CHANNEL_1))
@@ -2793,6 +2798,15 @@
 		ast_mutex_lock(&c1->lock);
 		p0 = c0->pvt->pvt;
 		p1 = c1->pvt->pvt;
+
+#ifdef PRI_2BCT
+		q931c0 = p0->call;
+		q931c1 = p1->call;
+		if (q931c0 && q931c1 && !triedtopribridge) {
+			pri_channel_bridge(q931c0, q931c1);
+			triedtopribridge = 1;
+		}
+#endif
 		if (op0 == p0)
 			i1 = zt_get_index(c0, p0, 1);
 		if (op1 == p1)




More information about the svn-commits mailing list