-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rtcp-mux changing on re-INVITE #28
Comments
This is by design. When offering rtcp-mux, the SDP must contain fallback RTCP attributes in case the answering client doesn't understand rtcp-mux and/or wishes not to multiplex. Only in the answer these attributes may be omitted. See RFC 5761. |
Would have to agree, it did not break functionality, but, on session refresh it does looks like unfortunate to get an additional (unused) port allocated. |
The port is "used" anyway, it gets allocated on the initial offer. It has to be, due to the mentioned fallback mechanism. Even if you were to deallocate it after it's confirmed to go unused, you couldn't use it for much else as it's an odd-numbered port. You could use it for another session only if there were some kind of "WebRTC only" or "rtcp-mux only" mode of operation, which doesn't exist. |
Ooops, found it, using query after everyoffer/answer transaction :) little bit confusing though, and helpful to know as I need to allocate / enable available ports range in advance, would be nice I think to comment it in description. |
I'm testing standalone rtpengine with webRTC client (RTP/SAVPF) and legacy devices (RTP/AVP) and see a problem in the following scenario:
m=audio 30074 RTP/SAVPF 0
a=rtcp:30074
a=rtcp-mux
a=candidate ... 30074 typ host
Now, when I receive re-INVITE from legacy client (ie, the other side of the session) and send it to rtpengine as an offer with swapped from-tag and to-tag, engine return SDP with additional port allocated for RTPC and two candidates for RTP and RTCP each, ie:
m=audio 30074 RTP/SAVPF 0
a=rtcp:30075
a=rtcp-mux
a=candidate ... 30074 typ host
a=candidate ... 30075 typ host
I tried different parameters / no parameters for rtcp-mux without lack - result is always the same.
The text was updated successfully, but these errors were encountered: