]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 27 Feb 2008 17:06:25 +0000 (17:06 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 27 Feb 2008 17:06:25 +0000 (17:06 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7755 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 732f1ad5a65a10465a2607e92af3fb1ab5f72147..609530b5f76551b60418c3c954cc6d28abc486d3 100644 (file)
@@ -224,6 +224,11 @@ void sofia_event_callback(nua_event_t event,
 
        if (session) {
                switch_core_session_signal_lock(session);
+
+               if (channel && switch_channel_get_state(channel) >= CS_HANGUP) {
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Channel is already hungup.\n");
+                       goto done;
+               }
        }
 
        if ((profile->pflags & PFLAG_AUTH_ALL) && tech_pvt && tech_pvt->key && sip) {