]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
skypiax: MODSKYPIAX-48 manage interface_status==CALLFLOW_STATUS_REMOTEHOLD when getti...
authorGiovanni Maruzzelli <gmaruzz@gmail.com>
Thu, 20 Aug 2009 10:21:49 +0000 (10:21 +0000)
committerGiovanni Maruzzelli <gmaruzz@gmail.com>
Thu, 20 Aug 2009 10:21:49 +0000 (10:21 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14577 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_skypiax/mod_skypiax.c

index 2323bac36570e155720dccdafa11ece2882b0e39..e85fcbd4766feccd54b50162d04bceff5c3bd860 100644 (file)
@@ -569,6 +569,11 @@ static switch_status_t channel_kill_channel(switch_core_session_t *session, int
                switch_clear_flag(tech_pvt, TFLAG_IO);
                switch_clear_flag(tech_pvt, TFLAG_VOICE);
                switch_set_flag(tech_pvt, TFLAG_HANGUP);
+               if (tech_pvt->skype_callflow == CALLFLOW_STATUS_REMOTEHOLD) {
+                       ERRORA("%s CHANNEL got SWITCH_SIG_KILL\n", SKYPIAX_P_LOG, switch_channel_get_name(channel));
+                       channel_on_hangup(session);
+               }
+
                //switch_mutex_unlock(tech_pvt->flag_mutex);
                break;
        case SWITCH_SIG_BREAK: