提交 be2b5777 authored 作者: Anthony Minessale's avatar Anthony Minessale

check gateway status instead of state in new function

上级 bd24aa6d
...@@ -4274,7 +4274,7 @@ void sofia_glue_gateway_list(sofia_profile_t *profile, switch_stream_handle_t *s ...@@ -4274,7 +4274,7 @@ void sofia_glue_gateway_list(sofia_profile_t *profile, switch_stream_handle_t *s
switch_mutex_lock(mod_sofia_globals.hash_mutex); switch_mutex_lock(mod_sofia_globals.hash_mutex);
for (gp = profile->gateways; gp; gp = gp->next) { for (gp = profile->gateways; gp; gp = gp->next) {
int reged = (gp->state == REG_STATE_REGED); int reged = (gp->status == SOFIA_GATEWAY_UP);
if (up ? reged : !reged) { if (up ? reged : !reged) {
stream->write_function(stream, "%s ", gp->name); stream->write_function(stream, "%s ", gp->name);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论