As far as I can tell though all the examples are valid for the userinfo portion of the URI.
SIP-URI = sip: [ userinfo ] hostport uri-parameters [ headers ] SIPS-URI = sips: [ userinfo ] hostport uri-parameters [ headers ] userinfo = ( user / telephone-subscriber ) [ ":" password ] "@" user = 1*( unreserved / escaped / user-unreserved ) user-unreserved = "&" / "=" / "+" / "$" / "," / ";" / "?" / "/" password = *( unreserved / escaped / "&" / "=" / "+" / "$" / "," ) As far as I know, user parameters of this type aren’t explicitly used or defined by RFC 3261 for SIP URIs; they really come from tel URIs [1]. But their use in SIP is widespread and defined in various other RFCs as well. [1] - https://datatracker.ietf.org/doc/html/rfc3966 Ben Newlin From: Users <users-boun...@lists.opensips.org> on behalf of Bogdan-Andrei Iancu <bog...@opensips.org> Date: Thursday, April 11, 2024 at 10:26 AM To: OpenSIPS users mailling list <users@lists.opensips.org>, Johan De Clercq <jo...@democon.be> Subject: Re: [OpenSIPS-Users] another question on sip format's. EXTERNAL EMAIL - Please use caution with links and attachments ________________________________ According to the grammar, the URI params are ONLY after the domain part (see https://www.ietf.org/rfc/rfc3261.html<https://www.ietf.org/rfc/rfc3261.html> page 222) SIP-URI = "sip:" [ userinfo ] hostport uri-parameters [ headers ] SIPS-URI = "sips:" [ userinfo ] hostport uri-parameters [ headers ] Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com<https://www.opensips-solutions.com> https://www.siphub.com<https://www.siphub.com> On 11.04.2024 15:23, Johan De Clercq wrote: Can param's be added anywhere in a user part. e.g. sip:0123456789;gw=case106@1.2.3.4<mailto:case106@1.2.3.4> //this is for sure valid. sip:gw=case107;0123456789@1.2.3.4<mailto:case107%3B0123456789@1.2.3.4> sip:gw=case108;0123456789;gw=case108@1.2.3.4<mailto:case108@1.2.3.4> the fist one is for sure valid, but what about the other two ? BR, _______________________________________________ Users mailing list Users@lists.opensips.org<mailto:Users@lists.opensips.org> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users