[OpenSIPS-Devel] [OpenSIPS/opensips] ced7b4: 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.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: ced7b4cf1f28d567ec6cf6ff5ae0e055f48f4411
      https://github.com/OpenSIPS/opensips/commit/ced7b4cf1f28d567ec6cf6ff5ae0e055f48f4411
  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