From: Anthony Minessale Date: Fri, 17 Sep 2010 22:06:59 +0000 (-0500) Subject: check gateway status instead of state in new function X-Git-Tag: v1.2-rc1~307 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be2b5777ae47046f2346e77e05e3ade5648839ea;p=thirdparty%2Ffreeswitch.git check gateway status instead of state in new function --- diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 498230789a..4018407961 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -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);