]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fixing issue - shouldnt check rtp termination service state
authorKapil Gupta <kgupta@sangoma.com>
Fri, 3 Aug 2012 09:27:21 +0000 (05:27 -0400)
committerKapil Gupta <kgupta@sangoma.com>
Fri, 3 Aug 2012 09:27:21 +0000 (05:27 -0400)
src/mod/endpoints/mod_media_gateway/media_gateway_utils.c

index 8063c682899de81fdb18e94e16f312f53407670b..2431e01fa391368a09592cf52b076d862843e3a4 100644 (file)
@@ -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;