Skip to content
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

siprec: fill stream object in metadata #3293

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

siadatism
Copy link
Contributor

Summary

Currently stream object in not exists in generated metadata in SIPREC sessions. This PR is aiming to fill this object so it could be added in metadata.

Details

SIPREC metadata includes stream object to identify owner of each stream by adding its label.

Additional information is provided in feature request #3287.

Solution

The stream object is already implemented but it is not being filled. For each stream, an stream uuid should be generated, and its label should be extracted from SDP. My current solution is primitive, it assumes the caller's stream label is 0 and the callee's stream label is 1. I don't know if this assumption is current in all cases or not. Someone else's opinion would be great.

Compatibility

No compatibility problem should be observed.

Closing issues

Closes #3287.

@razvancrainea
Copy link
Member

I am afraid this is not the correct approach, as you cannot make the index assumptions you made - in fact, rtpproxy does them differently than rtpengine :). So you can't rely on that, we need to "learn" it somehow, either by provided by the media relay, either by parsing the SDP.

@siadatism
Copy link
Contributor Author

Thank you for your response, @razvancrainea. Is it feasible to differentiate between the caller's and the callee's streams by parsing the SDP? If so, which specific field in the SDP indicates this difference?

@soroshsabz
Copy link

@razvancrainea any update? we need this feature

razvancrainea added a commit that referenced this pull request Jun 13, 2024
razvancrainea added a commit that referenced this pull request Jun 13, 2024
Close #3287 and #3293

(cherry picked from commit fb4402d)
razvancrainea added a commit that referenced this pull request Jun 13, 2024
Close #3287 and #3293

(cherry picked from commit fb4402d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add stream object in SIPREC metadata
4 participants