[Freeswitch-svn] [commit] r13973 - freeswitch/trunk/contrib/jmesquita/mod_khomp

FreeSWITCH SVN raulfragoso at freeswitch.org
Thu Jun 25 21:28:56 PDT 2009


Author: raulfragoso
Date: Thu Jun 25 23:28:55 2009
New Revision: 13973

Log:
Callback for audio listener missed a CM_LISTEN command to work


Modified:
   freeswitch/trunk/contrib/jmesquita/mod_khomp/mod_khomp.cpp

Modified: freeswitch/trunk/contrib/jmesquita/mod_khomp/mod_khomp.cpp
==============================================================================
--- freeswitch/trunk/contrib/jmesquita/mod_khomp/mod_khomp.cpp	(original)
+++ freeswitch/trunk/contrib/jmesquita/mod_khomp/mod_khomp.cpp	Thu Jun 25 23:28:55 2009
@@ -1165,6 +1165,9 @@
                 channel = switch_core_session_get_channel(session);
                 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Call will be answered on board %u, channel %u. [EV_CONNECT]\n", e->DeviceId, obj);
                 switch_channel_mark_answered(channel);
+                /* Start listening for audio */
+                const size_t buffer_size = 16;
+                k3l->command(e->DeviceId, obj, CM_LISTEN, (const char *) &buffer_size);
             }
             catch (K3LAPI::invalid_session & err)
             {



More information about the Freeswitch-svn mailing list