-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
SIP plugin: Save codec name on update request #2417
SIP plugin: Save codec name on update request #2417
Conversation
I'm not sure that's a proper fix. The audio and video payload types are updated when we get the remote SDP (see lines 5798 and 5800, which seem not to be constrained by |
Unless of course the browser is the one answering here, and so the payload types we took note of when processing the remote offer are not the same as the ones the browser answering eventually chose. Is this your case? |
Yes, this is the case when the browser is sending an answer on reinvite. But, the payload types (and payload/codec names) are not changed, they are missing for streams added in reinvite. In this PR I have added it in "update" request as it's done for "accept" request (see lines 3648 and 3652). Also, I have added additional check if they are already set to not override it. |
But that's what puzzles me: if the browser that is answering is confirming the new choices made by the offerer, then we should have those payload types already, as they're updated here: Since you have a testbed to replicate this scenario, could you check what those lines are doing, if anything, and why they're not updating payload types as needed? I'd say that, if there's an issue there, this should be fixed too. |
That's not where they are updated since the offerer is sending an offer, not an answer. (see line https://github.com/meetecho/janus-gateway/blob/master/plugins/janus_sip.c#L5791). Payload types are updated only when you are sending or receiving an answer. |
Oh you're right! Maybe I should start drinking coffee in the morning again... 🤭 |
Looks like the NoSIP plugin isn't affected, so no additional commit is needed. |
Thank you :) |
Co-authored-by: ihusejnovic <[email protected]>
Hi,
I noticed that recording is not working for stream added with "update" request because codec name was missing.
Here is the fix.