From 5b3a112115689caa6d145787e61c3716047ed49c Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Fri, 20 Jan 2012 08:56:51 +0100 Subject: [PATCH] Correctly control brige in case of mISDN If all ends in a call use mISDN, the bridging is done by mISDN itself. If one end of a call is not mISDN and there are two parties, the traffic is bridged via LCR. --- joinpbx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/joinpbx.cpp b/joinpbx.cpp index 2e2fabf..9290657 100644 --- a/joinpbx.cpp +++ b/joinpbx.cpp @@ -368,10 +368,11 @@ void JoinPBX::bridge(void) /* * Bridge between port instances if: + * - two relations * - one or all are not mISDN */ message = message_create(j_serial, relation->epoint_id, JOIN_TO_EPOINT, MESSAGE_BRIDGE); - message->param.bridge_id = j_serial; + message->param.bridge_id = (relations==2 && !allmISDN) ? j_serial : 0; PDEBUG(DEBUG_JOIN, "join%u EP%u requests bridge=%u\n", j_serial, relation->epoint_id, message->param.bridge_id); message_put(message); -- 2.13.6