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

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


  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 8fcc77cb87ba76e831466fb0a3da90eb556671d8
      https://github.com/OpenSIPS/opensips/commit/8fcc77cb87ba76e831466fb0a3da90eb556671d8
  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