fixed bchannel create

modified:   chan_lcr.c
This commit is contained in:
Super User 2008-06-16 22:13:39 +02:00
parent 2541bf8cd9
commit badc91ad96
1 changed files with 3 additions and 2 deletions

View File

@ -1114,9 +1114,10 @@ int receive_message(int message_type, unsigned int ref, union parameter *param)
CDEBUG(call, call->ast, "Join bchannel, because call is already bridged.\n");
bchannel_join(bchannel, call->bridge_id);
}
/* create only, if call exists, othewhise it bchannel is freed below... */
if (bchannel_create(bchannel, ((call->transparent)?1:0) + ((call->hdlc)?2:0)))
bchannel_activate(bchannel, 1);
}
if (bchannel_create(bchannel, ((call->transparent)?1:0) + ((call->hdlc)?2:0)))
bchannel_activate(bchannel, 1);
/* acknowledge */
newparam.bchannel.type = BCHANNEL_ASSIGN_ACK;
newparam.bchannel.handle = param->bchannel.handle;