]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4912 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 6 Dec 2012 17:45:13 +0000 (11:45 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 6 Dec 2012 17:45:13 +0000 (11:45 -0600)
src/mod/endpoints/mod_sofia/sofia_reg.c

index f3d3bb205bcd33fc9ba7512878e68e75c8097a0d..bc98f7fc2d8b6a1d5aa98e19c8788767eee41f3a 100644 (file)
@@ -312,6 +312,8 @@ void sofia_reg_check_gateway(sofia_profile_t *profile, time_t now)
                                if (gateway_ptr->ib_vars) {
                                        switch_event_destroy(&gateway_ptr->ib_vars);
                                }
+                       } else {
+                               last = gateway_ptr;
                        }
                } else {
                        last = gateway_ptr;