diff --git a/src/mod/endpoints/mod_media_gateway/media_gateway_cli.c b/src/mod/endpoints/mod_media_gateway/media_gateway_cli.c index 5834931b49..dabaf2cc94 100644 --- a/src/mod/endpoints/mod_media_gateway/media_gateway_cli.c +++ b/src/mod/endpoints/mod_media_gateway/media_gateway_cli.c @@ -988,7 +988,7 @@ switch_status_t handle_show_stats(switch_stream_handle_t *stream, megaco_profile stream->write_function(stream, "Total Number of RTP ADD received = %d \n", mg_profile->mg_stats->total_num_of_rtp_add_recvd); stream->write_function(stream, "Total Number of SUB received = %d \n", mg_profile->mg_stats->total_num_of_sub_recvd); stream->write_function(stream, "Total Number of CALL received = %d \n", mg_profile->mg_stats->total_num_of_call_recvd); - stream->write_function(stream, "Total Number of T38-FAX CALL received = %d \n", mg_profile->mg_stats->total_num_of_fax_call_recvd++); + stream->write_function(stream, "Total Number of T38 CALL received = %d \n", mg_profile->mg_stats->total_num_of_t38_call_recvd); stream->write_function(stream, "Total Number of IN-Service Service change sent = %d \n", mg_profile->mg_stats->total_num_of_term_in_service_change_sent); stream->write_function(stream, "Total Number of Out-Of-Service Service change sent = %d \n", diff --git a/src/mod/endpoints/mod_media_gateway/media_gateway_cmd_handler.c b/src/mod/endpoints/mod_media_gateway/media_gateway_cmd_handler.c index 7b0533269d..d7c03915fd 100644 --- a/src/mod/endpoints/mod_media_gateway/media_gateway_cmd_handler.c +++ b/src/mod/endpoints/mod_media_gateway/media_gateway_cmd_handler.c @@ -760,8 +760,6 @@ switch_status_t handle_mg_add_cmd(megaco_profile_t* mg_profile, MgMgcoCommand *i mg_apply_tdm_dtmf_removal(term, mg_ctxt); - if((MG_TERM_RTP == term->type) && (term->u.rtp.t38_options)) - mg_profile->mg_stats->total_num_of_fax_call_recvd++; mg_apply_tdm_ec(term, mg_ctxt); @@ -1085,6 +1083,9 @@ switch_status_t handle_mg_modify_cmd(megaco_profile_t* mg_profile, MgMgcoCommand mg_apply_tdm_ec(term, mg_ctxt); + if((MG_TERM_RTP == term->type) && (term->u.rtp.t38_options)) + mg_profile->mg_stats->total_num_of_t38_call_recvd++; + mg_print_t38_attributes(term); /* SDP updated to termination */ diff --git a/src/mod/endpoints/mod_media_gateway/mod_media_gateway.h b/src/mod/endpoints/mod_media_gateway/mod_media_gateway.h index 0b70920baa..ac18dca7ee 100644 --- a/src/mod/endpoints/mod_media_gateway/mod_media_gateway.h +++ b/src/mod/endpoints/mod_media_gateway/mod_media_gateway.h @@ -68,7 +68,7 @@ typedef struct mg_stats_s{ uint32_t total_num_of_rtp_add_recvd; uint32_t total_num_of_sub_recvd; uint32_t total_num_of_call_recvd; - uint32_t total_num_of_fax_call_recvd; + uint32_t total_num_of_t38_call_recvd; uint32_t total_num_of_add_failed; uint32_t total_num_of_term_already_in_ctxt_error; uint32_t total_num_of_choose_ctxt_failed_error;