[OpenSIPS-Devel] [OpenSIPS/opensips] 6e784e: core: introducing OpenSIPS contexts

Liviu Chircu liviu at opensips.org
Thu Oct 30 17:01:17 CET 2014


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 6e784ef794ee41c700784294b3b9afbe95080b06
      https://github.com/OpenSIPS/opensips/commit/6e784ef794ee41c700784294b3b9afbe95080b06
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2014-10-30 (Thu, 30 Oct 2014)

  Changed paths:
    A context.h

  Log Message:
  -----------
  core: introducing OpenSIPS contexts

A context is simply a data buffer. It can also be seen as a key-value
database, where different pieces of code register certain keys, in order
to maintain their values within each newly created context.

Contexts may be attached to any structure. The primitives defined in
"context.h" represent a generic way of registering/storing/fetching
data.


  Commit: 7db8a2ed00e4b8beb9e4b42a6c7f39d75f9e090f
      https://github.com/OpenSIPS/opensips/commit/7db8a2ed00e4b8beb9e4b42a6c7f39d75f9e090f
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2014-10-30 (Thu, 30 Oct 2014)

  Changed paths:
    M msg_translator.c
    M msg_translator.h
    M receive.c

  Log Message:
  -----------
  core: export sip_msg context operations

All sip_msg structures may now hold additional data within a context.


  Commit: 85c8dab536f6ae24451120ce6884e6231eee3e96
      https://github.com/OpenSIPS/opensips/commit/85c8dab536f6ae24451120ce6884e6231eee3e96
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2014-10-30 (Thu, 30 Oct 2014)

  Changed paths:
    M modules/tm/h_table.c
    A modules/tm/t_ctx.c
    A modules/tm/t_ctx.h
    M modules/tm/tm.c
    M modules/tm/tm_load.h

  Log Message:
  -----------
  tm: export transaction context operations

All transactions may now hold additional context-specific data.
Data can be stored/fetched using the newly added functions in tm_binds.


Compare: https://github.com/OpenSIPS/opensips/compare/bc9bef205de3...85c8dab536f6


More information about the Devel mailing list