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

Function trace_json_err

modules/mi_http/mi_http.c:233–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231#define MI_HTTP_INTERNAL_ERR_CODE 500
232
233static inline void trace_json_err(union sockaddr_union* cl_socket, str* message)
234{
235 char *req_method = (char *)unknown_method;
236
237 if ( !sv_socket ) {
238 sv_socket = httpd_api.get_server_info();
239 }
240
241 mi_trace_request(cl_socket, sv_socket, req_method, strlen(req_method),
242 NULL, &backend, t_dst);
243
244 mi_trace_reply( sv_socket, cl_socket, message, t_dst);
245}
246
247void trace_json_request(struct mi_cmd* f, char *req_method,
248 union sockaddr_union* cl_socket, mi_item_t *params)

Callers 1

Calls 2

mi_trace_requestFunction · 0.85
mi_trace_replyFunction · 0.85

Tested by

no test coverage detected