[Kamailio-Devel] More about URI port and URI parameters when comparing SIP URI's

Klaus Darilion klaus.mailinglists at pernau.at
Thu Feb 26 11:02:35 CET 2009


Zappasodi Daniele wrote:
> what about "myself"?
> if(from_uri==myself)
>         do authentication
> 
> A wrong From=sip:username at domain\IPaddress:5070; matches
> A correct From=sip:username at domain\IPaddress; doesn't match.

Shouldn't this depend on the "alias" settings of Kamailio?

regards
klaus

> 
> ---
> Daniele
> 
> Message: 1
> Date: Wed, 25 Feb 2009 20:13:51 +0100
> From: I?aki Baz Castillo <ibc at aliax.net>
> Subject: Re: [Kamailio-Devel] More about URI port and URI parameters
>         when    comparing SIP URI's
> To: devel at lists.kamailio.org
> Message-ID: <200902252013.51579.ibc at aliax.net>
> Content-Type: text/plain;  charset="iso-8859-1"
> 
> El Mi?rcoles, 25 de Febrero de 2009, Juha Heinanen escribi?:
>  > I?aki Baz Castillo writes:
>  >  > Yes, table 1 says that "port" is not allowed in From URI. But I think
>  >  > is better to ignore it when comparing isntead of giving error when
>  >  > parsing (there are too much SIP devices adding the port to the From
>  >  > header).
>  >
>  > i don't know which application requires comparing from uris,
> 
> Well, easy answer...
>   if ( $fu == "sip:kamailio at kamailio.org" )
> :)
> 
>  > but why
>  > don't you just compare if their userparts and domain parts are the same?
> 
> This would be great, but according to RFC 3261 comparing two SIP URI's 
> is more
> complex than comparing the userpart and domain. :(
> 
>  > i thought that from uri is an aor anyway.
> 
> I agree.
> 
> 
> --
> I?aki Baz Castillo
> 
> 
> 
> **********************************************************************
> The information in this message is confidential and may be legally
> privileged. It is intended solely for the addressee. Access to this message
> by anyone else is unauthorized. If you are not the intended recipient, any
> disclosure, copying, or distribution of the message, or any action or
> omission taken by you in reliance on it, is prohibited and may be unlawful.
> Please immediately contact the sender if you have received this message inerror.
> 
> **********************************************************************
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Kamailio (OpenSER) - Devel mailing list
> Devel at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/devel




More information about the Devel mailing list