X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=joinpbx.cpp;h=929065779125b2087890f9f0708d8e0285b9841c;hp=2e2fabfe3a2d349a128abff35ad9179a20b14e3a;hb=5b3a112115689caa6d145787e61c3716047ed49c;hpb=145f8adab1d00f6ddd45a435a70400546d4bcdbc 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);