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

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


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 526394aa899535c69c43557d301d00958dd36b7d
      https://github.com/OpenSIPS/opensips/commit/526394aa899535c69c43557d301d00958dd36b7d
  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.





More information about the Devel mailing list