On 01/04/2011 03:30 PM, Paul Kyzivat wrote: > IMO, if a UA is given a URI to call, it generally has no business > messing with it in any way. Removing the port is altering the URI, and > should only be done by something in the domain of the URI that is > familiar with the policies for construction of URIs within that domain. > > If the UA is *constructing* the URI, based on some policy rules known to > it for such construction, then it can construct one URI with the port > (for the R-URI) and one without (for the to-uri.) > > Messing with URIs from other domains is like modifying a postal address > for a recipient in a foreign country. You likely don't know the > conventions for formatting postal addresses in that place and have a > good chance of rendering your mail undeliverable.
Note that this discussion was in relation to URIs in the From and To headers, not the request URI. Since these URIs are pretty much only used for dialog matching, and the rules say it is recommended to ignore any port numbers that appear in the URIs, if a UA was to send requests in a dialog with differing ports in the URIs it sent and expect them to be matched by the receiver, it would be broken. > > Thanks, > Paul > > On 1/4/2011 10:39 AM, Iñaki Baz Castillo wrote: >> 2011/1/4 Brett Tate<br...@broadsoft.com>: >>> I'm not sure how the SIP working group intended RFC 3261 section 19.1 Table >>> 1 paragraph indicating "SHOULD ignore any disallowed components" to apply >>> to section 19.1.4's URI comparison rules. >> >> Fuly unclear. We could give our opinnion here, and any other person >> could have his own opinnion :) >> >> >>> However it might be problematic if you drop received To/From ports when >>> sending requests within dialog. >> >> IMHO it's much better just to ignore port in From/To URI when comparing >> URI's. >> > _______________________________________________ > Sip-implementors mailing list > Sip-implementors@lists.cs.columbia.edu > https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kflem...@digium.com Check us out at www.digium.com & www.asterisk.org _______________________________________________ Sip-implementors mailing list Sip-implementors@lists.cs.columbia.edu https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors