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 <[email protected]> on behalf of Bogdan-Andrei Iancu 
<[email protected]>
Date: Thursday, April 11, 2024 at 10:26 AM
To: OpenSIPS users mailling list <[email protected]>, Johan De Clercq 
<[email protected]>
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;[email protected]<mailto:[email protected]> //this is for sure 
valid.
sip:gw=case107;[email protected]<mailto:case107%[email protected]>
sip:gw=case108;0123456789;[email protected]<mailto:[email protected]>

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

BR,



_______________________________________________

Users mailing list

[email protected]<mailto:[email protected]>

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

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to