adding more stats counters
This commit is contained in:
parent
44a542719b
commit
9c35f46edd
|
@ -906,6 +906,10 @@ switch_status_t handle_show_stats(switch_stream_handle_t *stream, megaco_profile
|
|||
mg_profile->mg_stats->total_num_of_term_activation_failed_error);
|
||||
stream->write_function(stream, "Total Number of Term not found in context error = %d \n",
|
||||
mg_profile->mg_stats->total_num_of_no_term_ctxt_error);
|
||||
stream->write_function(stream, "Total Number of Term not in service error = %d \n",
|
||||
mg_profile->mg_stats->total_num_of_term_not_in_service_error);
|
||||
stream->write_function(stream, "Total Number of unknown context error = %d \n",
|
||||
mg_profile->mg_stats->total_num_of_unknown_ctxt_error);
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -559,6 +559,7 @@ void handle_mgco_cmd_ind(Pst *pst, SuId suId, MgMgcoCommand* cmd)
|
|||
if(SWITCH_STATUS_FALSE == mg_stack_termination_is_in_service(mg_profile, (char*)termId->name.lcl.val, termId->name.lcl.len)){
|
||||
MG_MEM_COPY(&prnt_buf, termId->name.lcl.val, sizeof(U8) * termId->name.lcl.len);
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Termination[%s] not in service \n",(strlen(prnt_buf))?prnt_buf:"NULL");
|
||||
mg_profile->mg_stats->total_num_of_term_not_in_service_error++;
|
||||
mg_util_set_term_string(&errTxt, termId);
|
||||
err_code = MGT_MGCO_RSP_CODE_UNKNOWN_TERM_ID;
|
||||
goto error;
|
||||
|
@ -789,7 +790,8 @@ void handle_mgco_cmd_ind(Pst *pst, SuId suId, MgMgcoCommand* cmd)
|
|||
goto done;
|
||||
|
||||
ctxt_error:
|
||||
err_code = MGT_MGCO_RSP_CODE_UNKNOWN_CTXT;
|
||||
mg_profile->mg_stats->total_num_of_unknown_ctxt_error++;
|
||||
err_code = MGT_MGCO_RSP_CODE_UNKNOWN_CTXT;
|
||||
|
||||
error:
|
||||
if (SWITCH_STATUS_SUCCESS ==
|
||||
|
|
|
@ -76,6 +76,8 @@ typedef struct mg_stats_s{
|
|||
uint32_t total_num_of_add_term_failed_error;
|
||||
uint32_t total_num_of_term_activation_failed_error;
|
||||
uint32_t total_num_of_no_term_ctxt_error;
|
||||
uint32_t total_num_of_term_not_in_service_error;
|
||||
uint32_t total_num_of_unknown_ctxt_error;
|
||||
}mg_stats_t;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue