fixing issue - shouldnt check rtp termination service state

This commit is contained in:
Kapil Gupta 2012-08-03 05:27:21 -04:00
parent 61f0237670
commit e718b3a8fa
1 changed files with 2 additions and 1 deletions

View 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;