fixing term state issue
This commit is contained in:
parent
7b7256b55f
commit
57ca2bbe8d
|
@ -85,7 +85,10 @@ switch_status_t mg_stack_termination_is_in_service(megaco_profile_t* mg_profile,
|
||||||
{
|
{
|
||||||
mg_termination_t* term = NULL;
|
mg_termination_t* term = NULL;
|
||||||
term = megaco_find_termination(mg_profile, term_str);
|
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)){
|
switch_test_flag(term, MG_IN_SERVICE)){
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue