]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
sofia tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 18 Sep 2006 16:32:47 +0000 (16:32 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 18 Sep 2006 16:32:47 +0000 (16:32 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2744 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index b08b3e7089d6ba5a0e261e7c0d09a831ad4c744c..374836158627d69f3ef43af341f004936a45788b 100644 (file)
@@ -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;
        }