Hi, according to RFC 3261 table 1 (pag 151):
dialog
reg./redir. Contact/
default Req.-URI To From Contact R-R/Route external
user -- o o o o o o
password -- o o o o o o
host -- m m m m m m
port (1) o - - o o o
user-param ip o o o o o o
method INVITE - - - - - o
maddr-param -- o - - o o o
ttl-param 1 o - - o - o
transp.-param (2) o - - o o o
lr-param -- o - - - o o
other-param -- o o o o o o
headers -- - - - o - o
It seems that when comparing 2 SIP URI's some URI parts (as port and
parameters) are ignored depending on the comparission context.
This is what I understand for now:
a) Comparing two SIP URI's in Request-Line:
- port is compared.
- required parameters: "user", "maddr", "ttl", "transport" and "lr".
- headers are ignored.
b) Comparing two SIP URI's in From/To header:
- port is ignored.
- required parameter: "user" .
- headers are ignored.
c) Comparing two SIP URI's in Contact header:
- port is compared.
- required parameters: "user", "maddr", "ttl" and "transport".
- headers are compared.
d) Comparing two SIP URI's in Record-Route/Route header:
- port is compared.
- required paramters: "user", "maddr", "transport" and "lr".
- headers are ignored.
e) Comparing two external SIP URI's:
- port is compared.
- required parameters: "user", "maddr", "ttl", "transport", "lr" and "method".
- headers are compared.
* Required parameters are those which must appear in both URI's with
same value both URI's to be equal.
** In all the cases, if URI 1 and URI 2 share a extension parameter,
it must have the same value in both URI's.
*** A extension parameter appearing in just one URI doesn't make both
URI different.
Questions:
- Is the above correct?
- Are those two URI's equal when comparing in context "From":
- sip:[email protected];maddr=1.2.3.4
- sip:[email protected];maddr=5.6.7.8
Note that in "From" context "maddr" is ignored (it could appear in
just one URI without making both URI's different), but it becomes an
extension param appearing in both URI's with different value, so
according to ** those 2 URI's are different. Am I right?
- Do I miss more parameters? which are the most common RFC's defining
new URI parameters and how to compare them?
Thanks a lot for any clarification.
--
Iñaki Baz Castillo
<[email protected]>
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors