From: Anthony Minessale Date: Mon, 18 Sep 2006 16:32:47 +0000 (+0000) Subject: sofia tweak X-Git-Tag: v1.0-beta1~2101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8ba03eec2e20d4b41dd4eb08cd153e0f9e38fc5;p=thirdparty%2Ffreeswitch.git sofia tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2744 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index b08b3e7089..3748361586 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -609,13 +609,13 @@ static switch_status_t sofia_on_hangup(switch_core_session_t *session) if (switch_test_flag(tech_pvt, TFLAG_ANS)) { nua_bye(tech_pvt->nh, TAG_END()); } else { - if (switch_test_flag(tech_pvt, TFLAG_INBOUND)) + if (switch_test_flag(tech_pvt, TFLAG_INBOUND)) { nua_respond(tech_pvt->nh, sip_cause, NULL, TAG_END()); - else + } else { nua_cancel(tech_pvt->nh, TAG_END()); + } } } - nua_handle_bind(tech_pvt->nh, NULL); nua_handle_destroy(tech_pvt->nh); tech_pvt->nh = NULL; }