From e718b3a8faf1ca95d7fec73c0f12a940db442bf8 Mon Sep 17 00:00:00 2001 From: Kapil Gupta Date: Fri, 3 Aug 2012 05:27:21 -0400 Subject: [PATCH] fixing issue - shouldnt check rtp termination service state --- src/mod/endpoints/mod_media_gateway/media_gateway_utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_media_gateway/media_gateway_utils.c b/src/mod/endpoints/mod_media_gateway/media_gateway_utils.c index 8063c68289..2431e01fa3 100644 --- a/src/mod/endpoints/mod_media_gateway/media_gateway_utils.c +++ b/src/mod/endpoints/mod_media_gateway/media_gateway_utils.c @@ -85,7 +85,8 @@ switch_status_t mg_stack_termination_is_in_service(megaco_profile_t* mg_profile, { mg_termination_t* term = NULL; term = megaco_find_termination(mg_profile, term_str); - if(term && switch_test_flag(term, MG_IN_SERVICE)){ + if(term && (MG_TERM_TDM == term->type) && + switch_test_flag(term, MG_IN_SERVICE)){ return SWITCH_STATUS_SUCCESS; } else { return SWITCH_STATUS_FALSE;