<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>R: [Kamailio-Devel] More about URI port and URI parameters when comparing SIP URI's</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>yes, it depends from alias, but it matches also all the IP addresses on which the proxy is connected.<BR>
The default behavior is to listen on all the available interfaces on the server, myself is usefull because I can match the SIP URIs with the aliases and all the proxy IP addresses without know and specify them on the alias.<BR>
When I have the proxy on a different port it doesn't work with From and To without port because it matches only &quot;proxy_ipaddress:port&quot; and not &quot;proxy_ipaddress&quot;.<BR>
I must add all the proxy IP addresses without port on the aliases, but I don't know if this is the correct solution and I must change the config file if I add a new interface or if I change an ip address.<BR>
<BR>
regards<BR>
Daniele<BR>
<BR>
-----Messaggio originale-----<BR>
Da: Klaus Darilion [<A HREF="mailto:klaus.mailinglists@pernau.at">mailto:klaus.mailinglists@pernau.at</A>]<BR>
Inviato: gio 26/02/2009 11.02<BR>
A: Zappasodi Daniele<BR>
Cc: devel@lists.kamailio.org<BR>
Oggetto: Re: [Kamailio-Devel] More about URI port and URI parameters when comparing SIP URI's<BR>
<BR>
Zappasodi Daniele wrote:<BR>
&gt; what about &quot;myself&quot;?<BR>
&gt; if(from_uri==myself)<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do authentication<BR>
&gt;<BR>
&gt; A wrong From=sip:username@domain\IPaddress:5070; matches<BR>
&gt; A correct From=sip:username@domain\IPaddress; doesn't match.<BR>
<BR>
Shouldn't this depend on the &quot;alias&quot; settings of Kamailio?<BR>
<BR>
regards<BR>
klaus<BR>
<BR>
&gt;<BR>
&gt; ---<BR>
&gt; Daniele<BR>
&gt;<BR>
&gt; Message: 1<BR>
&gt; Date: Wed, 25 Feb 2009 20:13:51 +0100<BR>
&gt; From: I?aki Baz Castillo &lt;ibc@aliax.net&gt;<BR>
&gt; Subject: Re: [Kamailio-Devel] More about URI port and URI parameters<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; when&nbsp;&nbsp;&nbsp; comparing SIP URI's<BR>
&gt; To: devel@lists.kamailio.org<BR>
&gt; Message-ID: &lt;200902252013.51579.ibc@aliax.net&gt;<BR>
&gt; Content-Type: text/plain;&nbsp; charset=&quot;iso-8859-1&quot;<BR>
&gt;<BR>
&gt; El Mi?rcoles, 25 de Febrero de 2009, Juha Heinanen escribi?:<BR>
&gt;&nbsp; &gt; I?aki Baz Castillo writes:<BR>
&gt;&nbsp; &gt;&nbsp; &gt; Yes, table 1 says that &quot;port&quot; is not allowed in From URI. But I think<BR>
&gt;&nbsp; &gt;&nbsp; &gt; is better to ignore it when comparing isntead of giving error when<BR>
&gt;&nbsp; &gt;&nbsp; &gt; parsing (there are too much SIP devices adding the port to the From<BR>
&gt;&nbsp; &gt;&nbsp; &gt; header).<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; i don't know which application requires comparing from uris,<BR>
&gt;<BR>
&gt; Well, easy answer...<BR>
&gt;&nbsp;&nbsp; if ( $fu == &quot;sip:kamailio@kamailio.org&quot; )<BR>
&gt; :)<BR>
&gt;<BR>
&gt;&nbsp; &gt; but why<BR>
&gt;&nbsp; &gt; don't you just compare if their userparts and domain parts are the same?<BR>
&gt;<BR>
&gt; This would be great, but according to RFC 3261 comparing two SIP URI's<BR>
&gt; is more<BR>
&gt; complex than comparing the userpart and domain. :(<BR>
&gt;<BR>
&gt;&nbsp; &gt; i thought that from uri is an aor anyway.<BR>
&gt;<BR>
&gt; I agree.<BR>
&gt;<BR>
&gt;<BR>
&gt; --<BR>
&gt; I?aki Baz Castillo<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; **********************************************************************<BR>
&gt; The information in this message is confidential and may be legally<BR>
&gt; privileged. It is intended solely for the addressee. Access to this message<BR>
&gt; by anyone else is unauthorized. If you are not the intended recipient, any<BR>
&gt; disclosure, copying, or distribution of the message, or any action or<BR>
&gt; omission taken by you in reliance on it, is prohibited and may be unlawful.<BR>
&gt; Please immediately contact the sender if you have received this message inerror.<BR>
&gt;<BR>
&gt; **********************************************************************<BR>
&gt;<BR>
&gt;<BR>
&gt; ------------------------------------------------------------------------<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; Kamailio (OpenSER) - Devel mailing list<BR>
&gt; Devel@lists.kamailio.org<BR>
&gt; <A HREF="http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel">http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel</A><BR>
&gt; <A HREF="http://lists.openser-project.org/cgi-bin/mailman/listinfo/devel">http://lists.openser-project.org/cgi-bin/mailman/listinfo/devel</A><BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML><pre>**********************************************************************
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.

**********************************************************************</pre>