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

Function w_mi_list_stats

statistics.c:852–871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

850}
851
852static mi_response_t *w_mi_list_stats(const mi_params_t *params,
853 struct mi_handler *async_hdl)
854{
855 mi_response_t *resp;
856 mi_item_t *resp_obj;
857 int i;
858
859 resp = init_mi_result_object(&resp_obj);
860 if (!resp)
861 return 0;
862
863 for( i=0 ; i<collector->mod_no ;i++ ) {
864 if (mi_list_module_stats(resp_obj, &collector->amodules[i] )!=0) {
865 free_mi_response(resp);
866 return 0;
867 }
868 }
869
870 return resp;
871}
872
873static mi_response_t *w_mi_list_stats_1(const mi_params_t *params,
874 struct mi_handler *async_hdl)

Callers

nothing calls this directly

Calls 3

init_mi_result_objectFunction · 0.85
mi_list_module_statsFunction · 0.85
free_mi_responseFunction · 0.85

Tested by

no test coverage detected