[OpenSIPS-Devel] [OpenSIPS/opensips] d2527e: Improve the cJSON library

Liviu Chircu liviu at opensips.org
Fri Jan 19 13:14:15 EST 2018


  Branch: refs/heads/feature/usrloc-kv-contact-storage
  Home:   https://github.com/OpenSIPS/opensips
  Commit: d2527e88d5eefcf8f6ab8ae07b414119617de8ec
      https://github.com/OpenSIPS/opensips/commit/d2527e88d5eefcf8f6ab8ae07b414119617de8ec
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-01-19 (Fri, 19 Jan 2018)

  Changed paths:
    M lib/cJSON.c
    M lib/cJSON.h

  Log Message:
  -----------
  Improve the cJSON library

    * add a str-based appending function
    * avoid defining yet another pair of malloc/free funcs
    * fix the resetted allocation functions from glibc to PKG


  Commit: bcae687fdf84da1c5adc96db3746bf03ac8af128
      https://github.com/OpenSIPS/opensips/commit/bcae687fdf84da1c5adc96db3746bf03ac8af128
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-01-19 (Fri, 19 Jan 2018)

  Changed paths:
    M str.h

  Log Message:
  -----------
  str.h: Add a quick str initialization function


  Commit: 90828299253da859617ca374ca54c1b37a9e4db8
      https://github.com/OpenSIPS/opensips/commit/90828299253da859617ca374ca54c1b37a9e4db8
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-01-19 (Fri, 19 Jan 2018)

  Changed paths:
    M map.c
    M map.h

  Log Message:
  -----------
  map.h: Refactor int flags into enum map_flags


  Commit: b674aa264f0cff7cf53d9994a7cd05b40a9d1edc
      https://github.com/OpenSIPS/opensips/commit/b674aa264f0cff7cf53d9994a7cd05b40a9d1edc
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-01-19 (Fri, 19 Jan 2018)

  Changed paths:
    M modules/usrloc/kv_store.c
    M modules/usrloc/kv_store.h

  Log Message:
  -----------
  usrloc K/V store: Add serialize/deserialize functions


  Commit: 7f1bef2f4cce695d3387094ed16154990a86ba6b
      https://github.com/OpenSIPS/opensips/commit/7f1bef2f4cce695d3387094ed16154990a86ba6b
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-01-19 (Fri, 19 Jan 2018)

  Changed paths:
    M modules/usrloc/ucontact.c
    M modules/usrloc/ucontact.h
    M modules/usrloc/udomain.c
    M modules/usrloc/ul_mod.c
    M modules/usrloc/ul_mod.h
    M modules/usrloc/urecord.c
    M modules/usrloc/urecord.h

  Log Message:
  -----------
  usrloc: Implement DB persistency for all K/V storage

This patch adds a new location table column, named "kv_store". This
column will hold any custom data that modules may intend to push into
usrloc contact structures. Currently, only the mid_registrar module is making
use of this feature.

Moreover, the implementation also includes persistency for the
record-level K/V storage. This is achieved with a special key, "_urec_kvs",
that will only be present in one of the contacts' K/V store.


  Commit: ca0fc932137e0061ce1f75899d510f2d14b3619c
      https://github.com/OpenSIPS/opensips/commit/ca0fc932137e0061ce1f75899d510f2d14b3619c
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-01-19 (Fri, 19 Jan 2018)

  Changed paths:
    M db/schema/location.xml
    M modules/usrloc/ul_mod.h
    M scripts/db_berkeley/opensips/location
    M scripts/db_berkeley/opensips/version
    M scripts/dbtext/opensips/location
    M scripts/dbtext/opensips/version
    M scripts/mysql/usrloc-create.sql
    M scripts/oracle/usrloc-create.sql
    M scripts/pi_http/pi_framework.xml
    M scripts/pi_http/usrloc-mod
    M scripts/pi_http/usrloc-table
    M scripts/postgres/usrloc-create.sql
    M scripts/sqlite/usrloc-create.sql

  Log Message:
  -----------
  Update DB schema


  Commit: d17722d0d870e2326373720e87dd307fdba48ce6
      https://github.com/OpenSIPS/opensips/commit/d17722d0d870e2326373720e87dd307fdba48ce6
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-01-19 (Fri, 19 Jan 2018)

  Changed paths:
    M modules/mid_registrar/mid_registrar.c
    M modules/mid_registrar/save.c

  Log Message:
  -----------
  mid_registrar: Allow startup with DB-enabled usrloc

Also swap the ordering of some usrloc API operations - this will help
keep the DB in sync at runtime more often.


Compare: https://github.com/OpenSIPS/opensips/compare/6a86d5443481...d17722d0d870


More information about the Devel mailing list