From a2b4bf69fe76e0a204f60d9778a1af36cfc16409 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 14 Jul 2009 14:36:59 +0000 Subject: [PATCH] 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 --- src/mod/endpoints/mod_sofia/sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }