]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3930 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 21 Feb 2012 21:52:17 +0000 (15:52 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 21 Feb 2012 21:52:17 +0000 (15:52 -0600)
src/mod/endpoints/mod_sofia/sofia.c

index 8b362b6f33242c0d58618a4401f1f8928b871920..a30cbb699df807c0c0265d51a6e7e68e5d04af21 100644 (file)
@@ -4736,7 +4736,7 @@ static void sofia_handle_sip_r_options(switch_core_session_t *session, int statu
                gateway->ping = switch_epoch_time_now(NULL) + gateway->ping_freq;
                sofia_reg_release_gateway(gateway);
                gateway->pinging = 0;
-       } else if (sofia_test_pflag(profile, PFLAG_UNREG_OPTIONS_FAIL) && status != 200 && sip && sip->sip_to) {
+       } else if (sofia_test_pflag(profile, PFLAG_UNREG_OPTIONS_FAIL) && (status != 200 && status != 486) && sip && sip->sip_to) {
                char *sql;
                time_t now = switch_epoch_time_now(NULL);
                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Expire registration '%s@%s' due to options failure\n",