Re: [SR-Users] Add default ports to URIs

2019-03-13 Thread Duarte Rocha
Greetings Alex,

I know about the RFC and i don't think the issue here is with about the Uri
Comparison. The reason here is that a client is requiring this feature even
though the RFC doesn't requires it.

Best regards

A terça, 12/03/2019, 19:15, Duarte Rocha  escreveu:

> Greetings,
>
> When i receive a message in Kamailio i want to add "5060" to the URI's
> port info when it's value is not specified.
>
> I can do it with pseudovariables but i was wondering if there's any config
> or setting that would do this automatically?
>
> Best Regards,
>
> Duarte Rocha
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Add default ports to URIs

2019-03-12 Thread Alex Balashov
Why would you want to do that? The spec is quite clear that an omission
of a port signifies 5060 for sip: and 5061 for SIP-TLS and sips:.

Although, interestingly, from RFC 3261 § 19.1.4 ("URI Comparison"):

A URI omitting any component with a default value will not
match a URI explicitly containing that component with its
default value.  For instance, a URI omitting the optional port
component will not match a URI explicitly declaring port 5060.
The same is true for the transport-parameter, ttl-parameter,
user-parameter, and method components.

On Tue, Mar 12, 2019 at 07:15:30PM +, Duarte Rocha wrote:

> Greetings,
> 
> When i receive a message in Kamailio i want to add "5060" to the URI's port
> info when it's value is not specified.
> 
> I can do it with pseudovariables but i was wondering if there's any config
> or setting that would do this automatically?
> 
> Best Regards,
> 
> Duarte Rocha

> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users