From 2557c9b112c224f99ca068af70e75db1cb5e9903 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 6 Dec 2012 11:45:13 -0600 Subject: [PATCH] FS-4912 --resolve --- src/mod/endpoints/mod_sofia/sofia_reg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index f3d3bb205b..bc98f7fc2d 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -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;