From: Andreas Eversberg Date: Fri, 20 Jan 2012 07:56:51 +0000 (+0100) Subject: Correctly control brige in case of mISDN X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=5b3a112115689caa6d145787e61c3716047ed49c;hp=145f8adab1d00f6ddd45a435a70400546d4bcdbc 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. --- 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);