[OpenSIPS-Devel] [OpenSIPS/opensips] 597daa: usrloc: Add generic, contact-level key-value stora...

Liviu Chircu liviu at opensips.org
Wed Jan 17 12:03:09 EST 2018


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

  Changed paths:
    M modules/usrloc/ucontact.c
    M modules/usrloc/ucontact.h
    M modules/usrloc/usrloc.c
    M modules/usrloc/usrloc.h
    M ut.h

  Log Message:
  -----------
  usrloc: Add generic, contact-level key-value storage

Allows various usrloc-dependent modules to easily store data into or to
retrieve data from each usrloc contact.


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

  Changed paths:
    A modules/usrloc/kv_store.c
    A modules/usrloc/kv_store.h
    M modules/usrloc/ucontact.c
    M modules/usrloc/ucontact.h
    M modules/usrloc/urecord.c
    M modules/usrloc/urecord.h
    M modules/usrloc/usrloc.c
    M modules/usrloc/usrloc.h

  Log Message:
  -----------
  usrloc: Add generic, record-level key-value storage

Allows various usrloc-dependent modules to easily store data into or
to retrieve data from each usrloc record / AOR.


  Commit: 1fc88e8bae8ddbce6f559b6ae38c6e1a74216056
      https://github.com/OpenSIPS/opensips/commit/1fc88e8bae8ddbce6f559b6ae38c6e1a74216056
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-01-17 (Wed, 17 Jan 2018)

  Changed paths:
    M modules/usrloc/kv_store.c

  Log Message:
  -----------
  usrloc: K/V store - use map_find() instead of map_get()


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

  Changed paths:
    M modules/mid_registrar/save.c
    A modules/mid_registrar/ul_storage.c
    A modules/mid_registrar/ul_storage.h
    M modules/mid_registrar/ulcb.c
    M modules/usrloc/kv_store.c

  Log Message:
  -----------
  mid_registrar: Refactor the AoR throttling implementation

We now make use of usrloc's newly added k/v storage functions in order
to store/retrieve the module data into/from each record.


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

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

  Log Message:
  -----------
  Refactor shm_str_resize() into shm_str_extend()

This hints better at what the function actually does (i.e. it will not
shrink your buffers)


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

  Changed paths:
    M modules/mid_registrar/save.c
    M modules/mid_registrar/ul_storage.c
    M modules/mid_registrar/ul_storage.h
    M modules/mid_registrar/ulcb.c

  Log Message:
  -----------
  mid_registrar: Refactor contact mirroring/throttling

We now make use of usrloc's newly added k/v storage functions in order
to store/retrieve the module data into/from each contact.


  Commit: 6a86d54434813164330b55d8974658dc5442b959
      https://github.com/OpenSIPS/opensips/commit/6a86d54434813164330b55d8974658dc5442b959
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-01-17 (Wed, 17 Jan 2018)

  Changed paths:
    M modules/mid_registrar/mid_registrar.c
    M modules/mid_registrar/mid_registrar.h
    M modules/mid_registrar/save.c
    M modules/mid_registrar/ulcb.c
    M modules/mid_registrar/ulcb.h
    M modules/pua_bla/pua_bla.c
    M modules/pua_bla/registrar_cb.c
    M modules/pua_bla/registrar_cb.h
    M modules/pua_usrloc/pua_usrloc.c
    M modules/pua_usrloc/pua_usrloc.h
    M modules/pua_usrloc/ul_publish.c
    M modules/snmpstats/interprocess_buffer.c
    M modules/snmpstats/interprocess_buffer.h
    M modules/snmpstats/openserSIPRegUserTable.c
    M modules/usrloc/ucontact.c
    M modules/usrloc/ucontact.h
    M modules/usrloc/ul_callback.c
    M modules/usrloc/ul_callback.h
    M modules/usrloc/urecord.c
    M modules/usrloc/urecord.h

  Log Message:
  -----------
  usrloc: Simplify the callback API

The opaque buffer extension for the API (commit b0241c1318) is no longer
needed, as the K/V usrloc extension completely replaces it.

This commit also refactors the usrloc callback types as "ul_cb_type",
thus making them easier to pick up / work with.


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


More information about the Devel mailing list