/// <summary> /// Stop conference call between remote parties; allow each party to talk to each other. /// </summary> /// <param name="conferenceCalls">Array of remote conference calls.</param> public void StopConferenceCall(AudioMedia[] conferenceCalls) { // For each call. for (int i = 0; i < conferenceCalls.Length; i++) { // Get first group. pjsua2.AudioMedia mediaCall_1 = conferenceCalls[i].PjAudioMedia; // For each call. for (int j = 0; j < conferenceCalls.Length; j++) { // Get second group. pjsua2.AudioMedia mediaCall_2 = conferenceCalls[j].PjAudioMedia; // If the two audio media are not equal. if (mediaCall_1.getPortId() != mediaCall_2.getPortId()) { // Stop these two calls from communicating. mediaCall_1.stopTransmit(mediaCall_2); } } } }
/// <summary> /// Get port id. /// </summary> /// <returns>The port id.</returns> public int GetPortId() { return(_pjAudioMedia.getPortId()); }