[OpenSIPS-Devel] [OpenSIPS/opensips] 6a4dc9: Allow writing to AVPs with negative index

Liviu Chircu noreply at github.com
Wed Oct 26 13:40:30 UTC 2022


  Branch: refs/heads/3.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 6a4dc965806394998ee188b6e5b8c4b3810e07f1
      https://github.com/OpenSIPS/opensips/commit/6a4dc965806394998ee188b6e5b8c4b3810e07f1
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2022-10-26 (Wed, 26 Oct 2022)

  Changed paths:
    M pvar.c
    M usr_avp.c
    M usr_avp.h

  Log Message:
  -----------
  Allow writing to AVPs with negative index

This includes both SET and DELETE operations, for example:
    $(avp(foo)[-1]) = NULL;
    $(avp(foo)[-1]) = "42";

(cherry picked from commit df362fb231fc42735f6aedcbdb8f036a72a98f2e)





More information about the Devel mailing list