]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fixing term state issue
authorKapil Gupta <kgupta@sangoma.com>
Mon, 6 Aug 2012 14:44:34 +0000 (10:44 -0400)
committerKapil Gupta <kgupta@sangoma.com>
Mon, 6 Aug 2012 14:44:34 +0000 (10:44 -0400)
src/mod/endpoints/mod_media_gateway/media_gateway_utils.c

index 2431e01fa391368a09592cf52b076d862843e3a4..297fe72c69cd3d4479a5dacdf107905e7de6acf9 100644 (file)
@@ -85,7 +85,10 @@ 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 && (MG_TERM_TDM == term->type) && 
+
+       if(term && MG_TERM_RTP == term->type) {
+               return SWITCH_STATUS_SUCCESS;
+       }else if(term && (MG_TERM_TDM == term->type) &&
                        switch_test_flag(term, MG_IN_SERVICE)){
                return SWITCH_STATUS_SUCCESS;
        } else {