Skip to content

Add support for outgoing late offers (offerless INVITE) to the SIP plugin - #3660

Open
lminiero wants to merge 3 commits into
masterfrom
sip-late-offer
Open

Add support for outgoing late offers (offerless INVITE) to the SIP plugin#3660
lminiero wants to merge 3 commits into
masterfrom
sip-late-offer

Conversation

@lminiero

Copy link
Copy Markdown
Member

While we supported late offers (offerless INVITEs) in the SIP plugin, we only allowed them on the way in, that is when handling incoming calls from the SIP side and targetet to the WebRTC user. This pull request now adds support to the other direction as well, which means the WebRTC user can now originate an offerless INVITE via the SIP plugin.

To use the feature, the way you use the plugin changes slightly, as you need to:

  1. not provide a JSEP SDP, but add a late_offer: true property to the call request;
  2. be prepared, in the accepted event, to handle an SDP offer, rather than an answer (as would normally be the case)
  3. when a JSEP SDP answer has been prepared, send it back using the new late_ack request.

I tested this using SIPp as a backend and it seems to be working as expected, but of course more feedback would help, so in case you're interested in the feature, please do give it a try and let us know. Notice that, while this is based on the master branch, I'll backport it to 0.x as well when merged.

@lminiero lminiero added the multistream Related to Janus 1.x label Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

multistream Related to Janus 1.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant