[OpenSIPS-Devel] [OpenSIPS/opensips] cbcdbb: aaa_diameter: Rework exposing command results to s...

Liviu Chircu noreply at github.com
Fri May 27 14:54:52 UTC 2022


  Branch: refs/heads/3.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: cbcdbbc88546e08785dbff74122453eba2785650
      https://github.com/OpenSIPS/opensips/commit/cbcdbbc88546e08785dbff74122453eba2785650
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2022-05-27 (Fri, 27 May 2022)

  Changed paths:
    M etc/dictionary.opensips
    M lib/cJSON.c
    M lib/cJSON.h
    M mi/mi.c
    M modules/aaa_diameter/aaa_diameter.c
    M modules/aaa_diameter/aaa_impl.c
    M modules/aaa_diameter/aaa_impl.h
    M modules/aaa_diameter/app_opensips/app_opensips.c
    M modules/aaa_diameter/doc/aaa_diameter_admin.xml

  Log Message:
  -----------
  aaa_diameter: Rework exposing command results to script

The initially exported value of Result-Code AVP integer value was not
ideal, as many Diameter exchanges are actual queries, with much more
rich data to be returned than just an integer code.

This commit replaces the "reply_code_pv" parameter of dm_send_request()
with "rpl_avps_pv", containing a JSON Array with all AVPs from the
Diameter Answer, as well as their values.

(cherry picked from commit 526394aa899535c69c43557d301d00958dd36b7d)





More information about the Devel mailing list