mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 21:38:34 +00:00
fixing term state issue
This commit is contained in:
1 parent
7b7256b55f
commit
57ca2bbe8d
1 file changed
+4
-1
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user