You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use ordinal comparisons and span-based parsing to avoid temporary string generation across SIP, RTSP, SDP, RTP, and WebRTC paths.
Replace allocation-heavy Trim, Substring, Split, regex, and string concatenation patterns where span slicing, destination-span split buffers, or StringBuilder preserve behavior with fewer intermediate strings.
Convert staged string.Format and fixed concatenation sites to interpolation, and
replace loop-based string concatenation with StringBuilder where strings are
built incrementally.
Avoid temporary string creation in SIP custom header prefix checks. Change
SIPHeader and RTSPHeader ToString implementations to override object.ToString()
so interpolating header instances preserves protocol serialization behavior.
Replace span-trim length checks with string.IsNullOrWhiteSpace where only
null/blank detection is needed.
Keep SDP media status parsing close to the original switch structure by using
guarded cases with ordinal ignore-case comparisons. Use discard patterns for
guarded switch cases where the matched value is not used.
Replace the long SIP/SDP test fixture with a raw string literal and
normalize it with ReplaceLineEndings(CRLF) so the protocol payload stays
stable across LF and CRLF checkouts.
Set the unit test project to C# 14 and import Polyfills so the call also
compiles for net462.
Convert long SIP and SDP test payloads from CRLF-heavy interpolated
strings to raw string literals normalized with ReplaceLineEndings.
Share the repeated integration INVITE payload through a helper and update
test projects to C# 14 so raw strings compile across target frameworks.
<PackageTags>SIP WebRTC VoIP RTP SDP STUN ICE SIPSorcery</PackageTags>
70
79
<PackageReleaseNotes>-v10.0.8: Bug fixes.
71
80
-v10.0.7: Network address change fix for Unity.
72
-
-v10.0.6: Bug fixes.
73
-
-v10.0.5: Stable release. Bug fixes.
81
+
-v10.0.6: Bug fixes.
82
+
-v10.0.5: Stable release. Bug fixes.
74
83
-v10.0.4-pre: New SRTP and DTLS implementation (huge thanks to @jimm98y).
75
84
-v10.0.3: Removed null SRTP ciphers.
76
85
-v10.0.2: Removed use of master key index for SRTP.
@@ -94,7 +103,7 @@
94
103
-v8.0.0: RTP header extension improvements (thanks to @ChristopheI). Major version to 8 to reflect highest .net runtime supported.</PackageReleaseNotes>
thrownewApplicationException("Invalid value for the audio sample period. Must be between "+
163
-
$"{AUDIO_SAMPLE_PERIOD_MILLISECONDS_MIN} and {AUDIO_SAMPLE_PERIOD_MILLISECONDS_MAX}ms.");
162
+
thrownewApplicationException($"Invalid value for the audio sample period. Must be between {AUDIO_SAMPLE_PERIOD_MILLISECONDS_MIN} and {AUDIO_SAMPLE_PERIOD_MILLISECONDS_MAX}ms.");
0 commit comments