On Tuesday 11 April 2006 16:02, Adam Roach wrote: ... > Why are they parsing anything but the topmost Via header field? It > seems a waste of processing time to parse the entire stack of Vias.
Loop detection requires a proxy to do at least parsial parsing of all the Via headers, not only the first one. I believe you are correct when you say it is a waste of processing power to parse the received parameter for anything but the top-most Via header in responses, but constructing a parser that only parses the received= parameter in the top Via (instead of all found) might be a waste as well, although the waste would be development time and not processing time. To answer the request for information about implementation behaviour, my open source SIP stack (YXA) puts IPv6 addresses _without_ brackets in received= parameters when it receives a request over IPv6, but parses IPv6 addresses both with and without brackets when forwarding responses according to the received= in the top Via. /Fredrik _______________________________________________ Sip-implementors mailing list [email protected] https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
