[Freeswitch-svn] [commit] r14013 - freeswitch/trunk/contrib/mod/endpoints/mod_khomp

FreeSWITCH SVN raulfragoso at freeswitch.org
Sat Jun 27 00:57:00 PDT 2009


Author: raulfragoso
Date: Sat Jun 27 02:57:00 2009
New Revision: 14013

Log:
Disable audio callback upon disconnection

Modified:
   freeswitch/trunk/contrib/mod/endpoints/mod_khomp/mod_khomp.cpp

Modified: freeswitch/trunk/contrib/mod/endpoints/mod_khomp/mod_khomp.cpp
==============================================================================
--- freeswitch/trunk/contrib/mod/endpoints/mod_khomp/mod_khomp.cpp	(original)
+++ freeswitch/trunk/contrib/mod/endpoints/mod_khomp/mod_khomp.cpp	Sat Jun 27 02:57:00 2009
@@ -318,7 +318,7 @@
 
 static switch_status_t channel_kill_channel(switch_core_session_t *session, int sig)
 {
-    switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "CHANNEL KILL\n");
+    switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "CHANNEL KILL, kill = %d\n", sig);
     switch_channel_t *channel = NULL;
     KhompPvt *tech_pvt = NULL;
 
@@ -1095,7 +1095,7 @@
                     switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Could not hangup channel: %u on board %u. Releasing board channel anyway. [EV_DISCONNECT]\n", obj, e->DeviceId);
                 try
                 {
-                    Globals::_k3lapi.command(e->DeviceId, obj, CM_DISCONNECT, NULL);
+                    Globals::_k3lapi.command(e->DeviceId, obj, CM_STOP_LISTEN, NULL);
                     KhompPvt::khompPvt(e->DeviceId, obj)->session(NULL);
                 }
                 catch(K3LAPI::invalid_channel & err)



More information about the Freeswitch-svn mailing list