[OpenSIPS-Devel] [opensips] loose_route returns TRUE for an in-dialog single consumed Route header (#550)

gergelypeli notifications at github.com
Wed Jun 10 17:56:35 CEST 2015


Happened with 1.11.3, but the relevant code seems to be the same even in the master branch.

According to the docs of loose_route:

2. If the request in inside a dialog ( has a to-tag ), loose-routing was used ($ru is end-point) and Route contains only the local proxy, the function returns FALSE.

But it returns true in this case. The suspicious code is in loose.c/after_loose(), which contains:

        LM_DBG("No next URI found!\n");
        status = (preloaded ? NOT_RR_DRIVEN : RR_DRIVEN);

Within a dialog "preloaded" is false, so this sets the return status to RR_DRIVEN, which is true. The expected return value is false, since the forwarding in this case is not based on Route-s, but on the RURI.


---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/550
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150610/7f9ec160/attachment.htm>


More information about the Devel mailing list