Making 2bct work only if transfer=yes in zapata.conf for the channel

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5164 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Matthew Fredrickson 21 years ago
parent 26c7a07735
commit 1220a0e2fb

@ -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;
}

Loading…
Cancel
Save