diff options
author | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-11 07:26:55 +0000 |
---|---|---|
committer | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-11 07:26:55 +0000 |
commit | 5c5892ba2bfac23d1eabd207619f451773a3a505 (patch) | |
tree | 822bd05ce0828dcc87425ef2bcea4d87df3b7d60 /channels/chan_zap.c | |
parent | 8091484668b257e90c26d5df45f66602168ce405 (diff) |
Making 2bct work only if transfer=yes in zapata.conf for the channel
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5164 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rwxr-xr-x | channels/chan_zap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 05a168201..c421fec70 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -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; } |