[OpenSIPS-Devel] [OpenSIPS/opensips] 971431: cfgutils: Add support for dynamic shared vars ($shv)

Liviu Chircu noreply at github.com
Wed Nov 25 11:29:05 EST 2020


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 971431a416e3cf4bc914457988b7e65b423254c1
      https://github.com/OpenSIPS/opensips/commit/971431a416e3cf4bc914457988b7e65b423254c1
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-11-25 (Wed, 25 Nov 2020)

  Changed paths:
    M modules/cfgutils/cfgutils.c
    M modules/cfgutils/doc/cfgutils_admin.xml
    M modules/cfgutils/shvar.c
    M modules/cfgutils/shvar.h

  Log Message:
  -----------
  cfgutils: Add support for dynamic shared vars ($shv)

OpenSIPS script developers now have the ability to use dynamic names for
the $shv variables (e.g. "$shv($avp(customer_id))"), rather than be
constrained to work with the statically-named $shv variables defined
throughout the script.

Moreover, shared variables may now be dynamically created and read via
the well-known MI commands: "shv_set" and "shv_get".

Closes #2140





More information about the Devel mailing list