]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make anything that remotely resembles a reply to options count as successful
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 14 Jul 2009 14:36:59 +0000 (14:36 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 14 Jul 2009 14:36:59 +0000 (14:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14242 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 3dadf0dcd6eee1d059963ea77bfb2bbea8ae5ae4..63c9184f07f29e7548d14bd3dfe8bb7acd289174 100644 (file)
@@ -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;
                        }