/// <summary> /// Forwards media from the WebRTC Peer Connection to the remote SIP user agent. /// </summary> /// <param name="remote">The remote endpoint the RTP packet was received from.</param> /// <param name="mediaType">The type of media.</param> /// <param name="rtpPacket">The RTP packet received on the SIP session.</param> private static void ForwardMediaToSIP(IPEndPoint remote, SDPMediaTypesEnum mediaType, RTPPacket rtpPacket) { if (_rtpSession != null && mediaType == SDPMediaTypesEnum.audio) { _rtpSession.SendAudio((uint)rtpPacket.Payload.Length, rtpPacket.Payload); } }