Skip to content

Conversation

@lminiero
Copy link
Member

The SIP and NoSIP plugins were so far lacking a way to uniquely identify a session: in the SIP plugin, for instance, we could in theory use the Call-ID, but that property actually identifies a call, not a specific participant in a call: in case both caller and callee are handled by the same Janus instance, or different calls end up using the same Call-ID by accident, this would cause ambiguity. As a result, there was no unique ID we could use to univocally identify a specific participant in the SIP and NoSIP plugins, which could be a very useful feature to have, e.g., to add some synchronous management requests to the plugin. This came up in #3604 (review), for example, but another potential use case would be the RTP forwarders support in #3583, where having these unique IDs would be quite useful too.

This PR adds this functionality, by simply introducing these new IDs but not using them for anything. In the SIP plugin, they're returned as unique_id as part of the registering and registered events, while in the NoSIP plugin they're returned with the processed and generated events: these IDs won't change as long as the Janus handle responsible for that session is alive.

Planning to merge soon as this doesn't have an impact on existing functionality (they don't do anything except return a new ID that's not used for anything right now), but it will be useful for future things.

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.

2 participants