]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3807 --resolve
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Tue, 17 Jan 2012 21:12:56 +0000 (16:12 -0500)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Tue, 17 Jan 2012 21:12:56 +0000 (16:12 -0500)
Remove Reregister optimization for user who doesn't allow multiple registration in sip

src/mod/endpoints/mod_sofia/sofia_reg.c

index 7403bc05b53922fc9c588834bdfd04e3ee1ffb82..8c73bd08ffd567b357161778b5927573064c8ea6 100644 (file)
@@ -1478,7 +1478,7 @@ uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_hand
                        username = switch_event_get_header(auth_params, "sip_auth_username");
                        realm = switch_event_get_header(auth_params, "sip_auth_realm");
                }
-               if (auth_res != AUTH_RENEWED) {
+               if (auth_res != AUTH_RENEWED || !multi_reg) {
                        if (multi_reg) {
                                if (multi_reg_contact) {
                                        sql =