protected virtual void OnRtpReceivedFromClient(RtpMessageEventArgs e) { if (null != RtpReceivedFromClient) { RtpReceivedFromClient(this, e); } }
protected virtual void OnRtpReceivedFromTcp(RtpMessageEventArgs e) { if (null != RtpReceivedFromPipe) { RtpReceivedFromPipe(this, e); } string callId; byte[] soundData; SoundProxy.GetSoundData(e.RtpData, e.RtpData.Length, out callId, out soundData); SoundProxy sp; if (!m_SoundProxies.TryGetValue(callId, out sp)) { m_Settings.WriteMessageToLog( LogMessageType.Error, "Failed to find sound proxy for Call-ID '" + callId + "'. Ignoring sound packet." ); } sp.SendSoundDataToServer(soundData); }