NewTOAPIA.Net.Rtp.RtpSession.HandleSSRCConflict C# (CSharp) Method

HandleSSRCConflict() private method

private HandleSSRCConflict ( uint ssrc, IPAddress ipAddress ) : void
ssrc uint
ipAddress System.Net.IPAddress
return void
        private void HandleSSRCConflict(uint ssrc, IPAddress ipAddress)
        {
            if(ssrc == participant.SSRC)
            {
                AddBye(ssrc);
                participant.SSRC = NextSSRC();

                //eventLog.WriteEntry(string.Format(CultureInfo.CurrentCulture, 
                //    Strings.SSRCConflictDetectedLocalSession, ipAddress.ToString()), EventLogEntryType.Warning, 
                //    (int)RtpEL.ID.SSRCConflictDetected);
            }
            else if(rtpSenders.ContainsKey(ssrc))
            {
                rtpSenders[ssrc].SSRCConflictDetected();

                //eventLog.WriteEntry(string.Format(CultureInfo.CurrentCulture, 
                //    Strings.SSRCConflictDetectedLocalSender, ipAddress.ToString()), EventLogEntryType.Warning, 
                //    (int)RtpEL.ID.SSRCConflictDetected);
            }
            else
            {
                // SSRC conflict is between two remote Streams, do nothing and let them take care of it.
                //eventLog.WriteEntry(string.Format(CultureInfo.CurrentCulture, 
                //    Strings.SSRCConflictDetectedRemoteMachines, ipAddress.ToString()), EventLogEntryType.Warning, 
                //    (int)RtpEL.ID.SSRCConflictDetected);
            }
        }