2010/7/17 Aman Aggarwal <[email protected]>:
> Hi All,
>
> Should UAC assumes port =5060 for a binding received in Contact header of 200 
> OK response for REGISTER if it does not contain port? For e.g.
>
> UAC sends Contact header in REGISTER:-
>
> Contact: <sip: [email protected]:5060>;expires=100
> UAC receives Contact header in 200 OK response:-
> Contact: <sip:[email protected]>;expires=100, 
> <sip:[email protected]:5062>;expires=10
>
> Now, while matching for correct binding, should UAC assumes port=5060 for 
> first binding in Contact header of 200 OK or treat it as a failure?


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.
------------------------------------


So technically speaking the response for your question is "no": these
URI's don't match.

However, a SIP URI having an IP as host part it's the same as such SIP
URI with port 5060 (this is not true if the host part would be a
domain/hostname). Anyhow I think that section 19.1.4 has priority.


-- 
Iñaki Baz Castillo
<[email protected]>

_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to