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

Iñaki Baz Castillo ibc at aliax.net
Wed Feb 25 20:13:51 CET 2009


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



More information about the Devel mailing list