[OpenSIPS-Devel] [OpenSIPS/opensips] b7f709: [json] parse boolean values as integers

Darwvin noreply at github.com
Mon Oct 5 15:05:22 UTC 2026


  Branch: refs/heads/4.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: b7f709a45849561df6fbbfa1302af6c2f19745a2
      https://github.com/OpenSIPS/opensips/commit/b7f709a45849561df6fbbfa1302af6c2f19745a2
  Author: darwvin-dev <darwvin at hotmail.com>
  Date:   2026-10-05 (Mon, 05 Oct 2026)

  Changed paths:
    M modules/json/README.md
    M modules/json/json.c
    A modules/json/test/opensips.cfg
    A modules/json/test/test.c

  Log Message:
  -----------
  [json] parse boolean values as integers

(cherry picked from commit f892a0a7dcaf5816de5b50df7d1cabfcb1bf9bc6)

[json] document and test boolean values

(cherry picked from commit ab462513555986daa56bc80fc64492c13f0521ca)

json: Retain backwards-compatibility on bool values

Follow-up of f892a0a7d, which exposes string variants of the bool values
as "1" and "0", respectively.  This commit fixes these back to the
previous "true" and "false" values, thus retaining full
backwards-compatibility.

Also fix the unit tests opensips.cfg, where if you don't specify a
socket, the startup_route is not run at all.  Add new tests.

(cherry picked from commit c30a883ca43daf45494c5dcf5bdb2c7aa138f3d2)



To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications



More information about the Devel mailing list