[OpenSIPS-Devel] [OpenSIPS/opensips] 2f4d01: Do not delete any internal AVP if "C" flag is used...

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Aug 17 17:10:10 CEST 2016

  Branch: refs/heads/2.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 2f4d0166c6c5ba066758b86c9a61f3719477ee40
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2016-08-17 (Wed, 17 Aug 2016)

  Changed paths:
    M modules/drouting/drouting.c

  Log Message:
  Do not delete any internal AVP if "C" flag is used.

When calling do_routing() with "C" flag (only check the prefix, without actually doing any routing), do not remove any AVP (in the beginning) as we do not add any (after prefix matching) -> no adding, so no deleting.
This allows you to safely call do_routing("C") while looping throuhg the GWs of another do_routing().

(cherry picked from commit 8fcc77cb87ba76e831466fb0a3da90eb556671d8)

More information about the Devel mailing list