This needs to be implemented the same way the Hop Count is implemented in the PSTN network. Ideally if the Proxy is replacing the Req URI with contact (contact routing) it may not have to fail the call for the reason that Max-Forwards is 0 after decrementing. So the count shld be taken into account after determining the Destination. The same rule needs to apply if the Proxy is Redirecting the call with a 302 or rewriting the Req-URI with a Different AOR for forwarding.
Kasturi -----Original Message----- From: Bogdan Pintea [mailto:[EMAIL PROTECTED] Sent: Monday, November 13, 2006 8:14 AM To: [EMAIL PROTECTED] Cc: sip-implementors@cs.columbia.edu Subject: Re: [Sip-implementors] Sip-implementors] Query on max-forwards counts [EMAIL PROTECTED] wrote: >> Consider the following flow: (mf=max-forwards) >> >> >> UA-A --- INVITE (mf=2) ---> Proxy-A ---- INVITE (mf=1) ---> >> Proxy-B ---- INVITE (mf=0) ---> UA-B >> >> >> In the flow above, should Proxy-B forward the INVITE with >> max-forwards=0 to UA-B or should it reject the request with 483? >> Section "8.1.1.6 Max-Forwards" : """ If the Max-Forwards value reaches 0 before the request reaches its destination, it will be rejected with a 483(Too Many Hops) error response. """ plus section "16.3 Request Validation" (for Proxy behavior before proxying a request): """ If the request contains a Max-Forwards header field with a field value of zero (0), the element MUST NOT forward the request. If the request was for OPTIONS, the element MAY act as the final recipient and respond per Section 11. Otherwise, the element MUST return a 483 (Too many hops) response. """ As Proxy-B decrements the mf to 0, with the INVITE not reaching the destination, it must answer itself. Hth, Bogdan. > > _______________________________________________ > Sip-implementors mailing list > Sip-implementors@cs.columbia.edu > https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors > > _______________________________________________ Sip-implementors mailing list Sip-implementors@cs.columbia.edu https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors _______________________________________________ Sip-implementors mailing list Sip-implementors@cs.columbia.edu https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors