MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / try_load_trace_api

Function try_load_trace_api

mi/mi_trace.c:47–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47void try_load_trace_api(void)
48{
49 /* already loaded */
50 if ( mi_trace_api )
51 return;
52
53 mi_trace_api = pkg_malloc(sizeof(trace_proto_t));
54 if (mi_trace_api == NULL)
55 return;
56
57 memset(mi_trace_api, 0, sizeof(trace_proto_t));
58 if (trace_prot_bind(TRACE_API_MODULE, mi_trace_api) < 0) {
59 LM_DBG("No tracing module used!\n");
60 return;
61 }
62
63 mi_message_id = mi_trace_api->get_message_id(MI_ID_S);
64}
65
66struct mi_trace_req* build_mi_trace_request( str* cmd,
67 mi_item_t *params, str* backend)

Callers 5

init_mi_coreFunction · 0.85
mod_initFunction · 0.85
mod_initFunction · 0.85
mod_initFunction · 0.85
mi_mod_initFunction · 0.85

Calls 1

trace_prot_bindFunction · 0.85

Tested by

no test coverage detected