From: Anthony Minessale Date: Wed, 5 Oct 2011 18:55:16 +0000 (-0500) Subject: FS-3596 --resolve X-Git-Tag: v1.2-rc1~27^2~372^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2d2353c;p=thirdparty%2Ffreeswitch.git FS-3596 --resolve --- diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index bccae9293f..4978815f98 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -72,7 +72,7 @@ static void sofia_reg_kill_reg(sofia_gateway_t *gateway_ptr) nua_handle_bind(gateway_ptr->nh, NULL); } - if (gateway_ptr->state != REG_STATE_REGED) { + if (gateway_ptr->state != REG_STATE_REGED && gateway_ptr->state != REG_STATE_UNREGISTER) { if (gateway_ptr->nh) { nua_handle_destroy(gateway_ptr->nh); gateway_ptr->nh = NULL;