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

2024-04-11 Thread Ben Newlin
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  on behalf of Bogdan-Andrei Iancu 

Date: Thursday, April 11, 2024 at 10:26 AM
To: OpenSIPS users mailling list , Johan De Clercq 

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


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

2024-04-11 Thread Bogdan-Andrei Iancu
According to the grammar, the URI params are ONLY after the domain part 
(see 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.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 //this is for sure valid.
sip:gw=case107;0123456789@1.2.3.4 
sip:gw=case108;0123456789;gw=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
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


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

2024-04-11 Thread Johan De Clercq
Can param's be added anywhere in a user part.

e.g.
sip:0123456789;gw=case106@1.2.3.4 //this is for sure valid.
sip:gw=case107;0123456789@1.2.3.4
sip:gw=case108;0123456789;gw=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
http://lists.opensips.org/cgi-bin/mailman/listinfo/users