From: Anthony Minessale Date: Tue, 14 Jul 2009 14:36:59 +0000 (+0000) Subject: make anything that remotely resembles a reply to options count as successful X-Git-Tag: v1.0.4~174 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2b4bf69fe76e0a204f60d9778a1af36cfc16409;p=thirdparty%2Ffreeswitch.git make anything that remotely resembles a reply to options count as successful git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14242 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 3dadf0dcd6..63c9184f07 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -2838,7 +2838,7 @@ static void sofia_handle_sip_r_options(switch_core_session_t *session, int statu } if (gateway) { - if (status == 200 || status == 404 || status == 501) { + if (status >= 200 && status < 600) { if (gateway->state == REG_STATE_FAILED) { gateway->state = REG_STATE_UNREGED; }