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);
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;
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 ==
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;