private void CheckRemotePartyHoldCondition(SDP remoteSDP) { var mediaStreamStatus = remoteSDP.GetMediaStreamStatus(SDPMediaTypesEnum.audio, 0); if (mediaStreamStatus == MediaStreamStatusEnum.SendOnly) { if (!RemoteOnHold) { RemoteOnHold = true; RemotePutOnHold?.Invoke(); } } else if (mediaStreamStatus == MediaStreamStatusEnum.SendRecv && RemoteOnHold) { if (RemoteOnHold) { RemoteOnHold = false; RemoteTookOffHold?.Invoke(); } } }