[OpenSIPS-Users] another question on sip format's.

Ben Newlin Ben.Newlin at genesys.com
Thu Apr 11 16:07:23 UTC 2024


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-bounces at lists.opensips.org> on behalf of Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: Thursday, April 11, 2024 at 10:26 AM
To: OpenSIPS users mailling list <users at lists.opensips.org>, Johan De Clercq <Johan at 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 at 1.2.3.4<mailto:case106 at 1.2.3.4> //this is for sure valid.
sip:gw=case107;0123456789 at 1.2.3.4<mailto:case107%3B0123456789 at 1.2.3.4>
sip:gw=case108;0123456789;gw=case108 at 1.2.3.4<mailto:case108 at 1.2.3.4>

the fist one is for sure valid, but what about the other two ?

BR,



_______________________________________________

Users mailing list

Users at lists.opensips.org<mailto:Users at lists.opensips.org>

http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240411/dfbc461b/attachment-0001.html>


More information about the Users mailing list