From 73f386244d31968922ce5daeeed0863bc2395322 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 18 Jan 2010 23:04:56 +0000 Subject: [PATCH] yes mikej it needs to go in git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16398 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_reg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index 4c370b84e6..bf391be3a7 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -1427,13 +1427,11 @@ void sofia_reg_handle_sip_r_register(int status, if (sofia_private && sofia_private->gateway) { nua_handle_destroy(sofia_private->gateway->nh); sofia_private->gateway->nh = NULL; - sofia_private->gateway->state = REG_STATE_UNREGED; } else { nua_handle_destroy(nh); } - return; } - + if (sofia_private && sofia_private->gateway) { reg_state_t ostate = sofia_private->gateway->state; switch (status) {