Making 2bct work only if transfer=yes in zapata.conf for the channel
authorMatthew Fredrickson <creslin@digium.com>
Fri, 11 Mar 2005 07:26:55 +0000 (07:26 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Fri, 11 Mar 2005 07:26:55 +0000 (07:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5164 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 05a1682..c421fec 100755 (executable)
@@ -2876,7 +2876,10 @@ static int zt_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags,
 #ifdef PRI_2BCT
                q931c0 = p0->call;
                q931c1 = p1->call;
-               if (q931c0 && q931c1 && !triedtopribridge) {
+               if (p0->tranfer && p1->transfer 
+                               && q931c0 && q931c1 
+                               && !triedtopribridge) {
+
                        pri_channel_bridge(q931c0, q931c1);
                        triedtopribridge = 1;
                }