From: Anthony Minessale Date: Mon, 18 Jan 2010 23:04:56 +0000 (+0000) Subject: yes mikej it needs to go in X-Git-Tag: v1.0.6~688 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73f386244d31968922ce5daeeed0863bc2395322;p=thirdparty%2Ffreeswitch.git yes mikej it needs to go in git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16398 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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) {