[OpenSIPS-Devel] [OpenSIPS/opensips] cda1a0: [proto_hep] introduce hep_id parameter(currently u...

ionutrazvanionita ionutionita at opensips.org
Tue Nov 15 18:16:39 CET 2016


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: cda1a03167d0eebb04b052c996d1de5f23cc57c5
      https://github.com/OpenSIPS/opensips/commit/cda1a03167d0eebb04b052c996d1de5f23cc57c5
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-09-16 (Fri, 16 Sep 2016)

  Changed paths:
    M modules/proto_hep/hep.c
    M modules/proto_hep/hep.h
    M modules/proto_hep/hep_cb.c
    M modules/proto_hep/hep_cb.h
    M modules/proto_hep/proto_hep.c

  Log Message:
  -----------
  [proto_hep] introduce hep_id parameter(currently unused)

	The hep_id is used to define destinations for your hep
packets. It shall be used by other modules in order for them not
to implement the parsing logic.


  Commit: f47a31181ca07411f5ec42014e676448341de8db
      https://github.com/OpenSIPS/opensips/commit/f47a31181ca07411f5ec42014e676448341de8db
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-09-16 (Fri, 16 Sep 2016)

  Changed paths:
    M modules/siptrace/siptrace.c
    M modules/siptrace/siptrace.h

  Log Message:
  -----------
  [siptrace] use the hep id defined in proto hep

	Use the hep ids defined in proto_hep module instead of
defining new ones in siptrace module.


  Commit: 7660b8b4a9332443fbfe05d5576252cfe4648c46
      https://github.com/OpenSIPS/opensips/commit/7660b8b4a9332443fbfe05d5576252cfe4648c46
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-09-16 (Fri, 16 Sep 2016)

  Changed paths:
    M modules/proto_hep/hep.c
    M modules/proto_hep/hep.h
    M modules/proto_hep/hep_cb.c
    M modules/proto_hep/hep_cb.h
    M modules/proto_hep/proto_hep.c
    M modules/sipcapture/sipcapture.c
    M modules/siptrace/siptrace.c
    M modules/siptrace/siptrace.h
    A trace_api.c
    A trace_api.h

  Log Message:
  -----------
  Define generic tracing api and proto_hep implementation

	A new api has been defined in OpenSIPS core which
provides functions for doing complex message tracing. Currently,
the only module implementing this api is proto_hep which provides
functions for HEP protocol.
	The new api provides functions for creating a tracing
message, adding data to the message, sending the message and
fetching destination structure info.
	The old api that was defined in proto_hep is still there
but provides only the functionality used by sipcapture module,
the callback registration function for received hep messages and
the context position getter function which gives you the index
where the hep context is being held. The rest of the functions
are now being implemented by the generic api in core.
	What is more, siptrace module uses the core tracing api
to send it's messages, having now more flexibility than ever.


  Commit: e5baa3c333f9b632cd5be31ceb972df45b3195b5
      https://github.com/OpenSIPS/opensips/commit/e5baa3c333f9b632cd5be31ceb972df45b3195b5
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-09-16 (Fri, 16 Sep 2016)

  Changed paths:
    M modules/proto_hep/hep.c
    M modules/siptrace/siptrace.c
    M modules/siptrace/siptrace.h
    M trace_api.h

  Log Message:
  -----------
  [siptrace] allow other modules to trace messages

	A new api in siptrace module has been defined which allows
tracing messages using any implemented trace protocol(currently
only hep) in sip context(per message/transaction/dialog). This
way tracing messages other than sip(log messages, rest, http)
will be much easier to implement.
	Along with the new api, sip_trace function has been extended
to accept another extra parameter which will specify the types of
messages to be traced(by default only sip messages shall be traced).
Modules that will implement the api have to register to siptrace
module using an identifier which will be used by sip_trace function
in order to identify the types of tracing that are enabled.
	Also initial trace api has been modified. After sending,
the traced message won't be freed, leaving this posibility to the
user.


  Commit: d617d5d5ec74cc80b71ab27655dfcf31407e218b
      https://github.com/OpenSIPS/opensips/commit/d617d5d5ec74cc80b71ab27655dfcf31407e218b
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-09-16 (Fri, 16 Sep 2016)

  Changed paths:
    M modules/proto_hep/hep.c

  Log Message:
  -----------
  [proto_hep] fix bugs

	* correctly calculate hepv1/2 space to be allocated. Ip
addresses weren't take into account;
	* initialise to null chunk to be freed in free hep message
function;


  Commit: cb7d74bb017b7edfc766cdd9eab9cb0a81d6c040
      https://github.com/OpenSIPS/opensips/commit/cb7d74bb017b7edfc766cdd9eab9cb0a81d6c040
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-09-16 (Fri, 16 Sep 2016)

  Changed paths:
    M modules/proto_hep/hep.c

  Log Message:
  -----------
  [proto_hep] fix bad pointer source for generic chunks


  Commit: 9501eaceb0d130de6f0bf2ef755dc25e95a14d7f
      https://github.com/OpenSIPS/opensips/commit/9501eaceb0d130de6f0bf2ef755dc25e95a14d7f
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-11-15 (Tue, 15 Nov 2016)

  Changed paths:
    M modules/proto_hep/hep.c
    M modules/proto_hep/hep.h
    M modules/proto_hep/hep_cb.c
    M modules/proto_hep/hep_cb.h
    M modules/proto_hep/proto_hep.c
    M modules/sipcapture/sipcapture.c
    A modules/sipcapture/sipcapture.c.orig
    M modules/siptrace/siptrace.c
    M modules/siptrace/siptrace.h
    A trace_api.c
    A trace_api.h

  Log Message:
  -----------
  Merge branch sipcapture-reloaded from commit 'cb7d74b'

Conflicts:
	modules/proto_hep/hep.c
	modules/sipcapture/sipcapture.c


Compare: https://github.com/OpenSIPS/opensips/compare/84b6705ab1a9...9501eaceb0d1


More information about the Devel mailing list