Skip to content

Feature merge (Headers, Data Allocations and TURNS/STUNS)#1635

Merged
sipsorcery merged 8 commits into
sipsorcery-org:masterfrom
ispysoftware:clean-start
May 24, 2026
Merged

Feature merge (Headers, Data Allocations and TURNS/STUNS)#1635
sipsorcery merged 8 commits into
sipsorcery-org:masterfrom
ispysoftware:clean-start

Conversation

@ispysoftware
Copy link
Copy Markdown
Contributor

Merging in updates i made in previous sipsorcery to bring it inline with current version.

Added support for matching multiple URIs in header extensions (fixes issues with various browsers)
Added offset and count to senddata (no API surface change) - reduces allocations
Added TURNS and STUNS support (tested)

Also nasty bug fix with DNS resolution immediately timing out due to DateTime.Now and DateTime.UTCNow conflict.

Copy link
Copy Markdown
Member

@sipsorcery sipsorcery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is to get all the Turn logic into the TurnClient class. The RtpIceChannel class has started to snowball a bit. That's a big'ish refactor though and this PR is worth merging in the meantime to get stuns and turns support.

@sipsorcery sipsorcery merged commit 3a544cf into sipsorcery-org:master May 24, 2026
6 of 7 checks passed
@ispysoftware ispysoftware mentioned this pull request May 25, 2026
Comment on lines +38 to +48
public override bool MatchesExtension(string uri)
{
switch (uri.ToLower())
{
case RTP_HEADER_EXTENSION_URI:
case "urn:ietf:params:rtp-hdrext:transport-wide-cc": //official urn registered with IANA
case "http://www.webrtc.org/experiments/rtp-hdrext/transport-wide-cc-02":
return true;
}
return false;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optimized in #1639

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants