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

ionutrazvanionita ionutionita at opensips.org
Thu Sep 15 17:30:37 CEST 2016


  Branch: refs/heads/siptrace-reloaded
  Home:   https://github.com/OpenSIPS/opensips
  Commit: fe41af6bd5d42fd89f789b7f0760c05031c5fd75
      https://github.com/OpenSIPS/opensips/commit/fe41af6bd5d42fd89f789b7f0760c05031c5fd75
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-09-15 (Thu, 15 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: db756d22e0e8e6b76752cd2b5249130f39d32606
      https://github.com/OpenSIPS/opensips/commit/db756d22e0e8e6b76752cd2b5249130f39d32606
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-09-15 (Thu, 15 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: 06a0ff0f98a78238374eed9d08392c4b30b96c02
      https://github.com/OpenSIPS/opensips/commit/06a0ff0f98a78238374eed9d08392c4b30b96c02
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-09-15 (Thu, 15 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: 79dae4801c0c8ea63d6786a96f54760d35ed1070
      https://github.com/OpenSIPS/opensips/commit/79dae4801c0c8ea63d6786a96f54760d35ed1070
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-09-15 (Thu, 15 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: 31814f04d0cf0e55ca8b5a52df871cbc5f821a92
      https://github.com/OpenSIPS/opensips/commit/31814f04d0cf0e55ca8b5a52df871cbc5f821a92
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-09-15 (Thu, 15 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: 3e2e00afbc8552849d546928eba18beaa67d53cc
      https://github.com/OpenSIPS/opensips/commit/3e2e00afbc8552849d546928eba18beaa67d53cc
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-09-15 (Thu, 15 Sep 2016)

  Changed paths:
    M modules/proto_hep/hep.c

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


  Commit: 2291bf1abc25403163c8275af0c83950a0f4763c
      https://github.com/OpenSIPS/opensips/commit/2291bf1abc25403163c8275af0c83950a0f4763c
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-09-15 (Thu, 15 Sep 2016)

  Changed paths:
    M modules/proto_hep/hep.h
    M modules/rest_client/rest_client.c
    M modules/rest_client/rest_methods.c
    M modules/rest_client/rest_methods.h

  Log Message:
  -----------
  Trace api implementation in rest_client module

	Rest messages can now be traced using siptrace module.
All GET and POST messages will be traced, both the requests and
the replies. Also the correlation id will be set with the value
of the callid(HEP protocol related) in order to be able to
correlate them with the SIP messages.


Compare: https://github.com/OpenSIPS/opensips/compare/348b29ae33ad...2291bf1abc25


More information about the Devel mailing list