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

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

  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: ff8dd4f3de46afe797a1a342c3a135790bd16ce8
  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().

More information about the Devel mailing list