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
This commit is contained in:
Matthew Fredrickson
2005-03-11 07:26:55 +00:00
parent 26c7a07735
commit 1220a0e2fb

View File

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