check gateway status instead of state in new function

This commit is contained in:
Anthony Minessale 2010-09-17 17:06:59 -05:00
parent bd24aa6d79
commit be2b5777ae
1 changed files with 1 additions and 1 deletions

View File

@ -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);
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) {
stream->write_function(stream, "%s ", gp->name);