Skip to content

Fix sip instance in REGISTER reply#3886

Merged
liviuchircu merged 1 commit into
OpenSIPS:3.6from
dsandras:ds-fix-sip-instance
Jun 15, 2026
Merged

Fix sip instance in REGISTER reply#3886
liviuchircu merged 1 commit into
OpenSIPS:3.6from
dsandras:ds-fix-sip-instance

Conversation

@dsandras

@dsandras dsandras commented May 5, 2026

Copy link
Copy Markdown
Contributor

The SIP Instance of the 200 OK response is not correctly formatted.

It should be surrounded by angle brackets following section 4.1 from RFC
5626:

  [RFC3840] defines equality rules for callee capabilities parameters,
  and according to that specification, the "sip.instance" media feature
  tag will be compared by case- sensitive string comparison.  This means
  that the URN will be encapsulated by angle brackets ("<" and ">") when
  it is placed within the quoted string value of the "+sip.instance"
  Contact header field parameter.

Summary

Details

Solution

Compatibility

Closing issues

@dsandras dsandras marked this pull request as draft May 5, 2026 08:43
@dsandras dsandras changed the base branch from master to 3.6 May 5, 2026 08:44
@dsandras dsandras marked this pull request as ready for review May 5, 2026 08:45
@dsandras

dsandras commented May 5, 2026

Copy link
Copy Markdown
Contributor Author

@liviuchircu @bogdan-iancu Hi!

Maybe one of you could check this one and consider it to be included? Thanks a lot.

Damien

@dsandras dsandras changed the title Ds fix sip instance Fix sip instance in REGISTER reply May 5, 2026
@dsandras dsandras force-pushed the ds-fix-sip-instance branch from 1dceb26 to b0c3005 Compare May 5, 2026 12:01
It should be surrounded by angle brackets following section 4.1 from RFC
5626:

  [RFC3840] defines equality rules for callee capabilities parameters,
  and according to that specification, the "sip.instance" media feature
  tag will be compared by case- sensitive string comparison.  This means
  that the URN will be encapsulated by angle brackets ("<" and ">") when
  it is placed within the quoted string value of the "+sip.instance"
  Contact header field parameter.
@dsandras

Copy link
Copy Markdown
Contributor Author

Hello,

Any interest here?

Thanks

@dsandras

Copy link
Copy Markdown
Contributor Author

@bogdan-iancu Hi, could you consider this pull request? It seems trivial. Thanks.

@bogdan-iancu

Copy link
Copy Markdown
Member

Hi @dsandras , this is on @liviuchircu 's todo list, he will check on it and update. Thanks !

@dsandras

dsandras commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

Hi @bogdan-iancu thanks!

@liviuchircu

Copy link
Copy Markdown
Member

Hi @dsandras! I finally took some time to look into this one. The fix is quite specific, as it addresses only REGISTER packets with Supported: gruu, when the disable_gruu on the server-side is explicitly flipped to 0... So the risk of breakage is near-zero.

Now, on the actual fix: I added a couple unit tests and tested the GRUU stuff, with the +sip.instance="<urn:uuid:... Contact output, which passed just fine after your fix. I'll get them pushed as well. So, just merging & backporting here, cheers!

@liviuchircu liviuchircu added this to the 3.6.6 milestone Jun 15, 2026
@liviuchircu liviuchircu merged commit 04d5367 into OpenSIPS:3.6 Jun 15, 2026
57 of 59 checks passed
liviuchircu added a commit that referenced this pull request Jun 15, 2026
liviuchircu added a commit that referenced this pull request Jun 15, 2026
liviuchircu added a commit that referenced this pull request Jun 15, 2026
@dsandras

Copy link
Copy Markdown
Contributor Author

Thanks @liviuchircu !

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.

3 participants