[Freeswitch-svn] [commit] r10638 - freeswitch/trunk/src/mod/applications/mod_vmd
FreeSWITCH SVN
mcollins at freeswitch.org
Fri Dec 5 15:24:00 PST 2008
Author: mcollins
Date: Fri Dec 5 18:24:00 2008
New Revision: 10638
Log:
Add INFO print and chan var when vmd detect is true
Modified:
freeswitch/trunk/src/mod/applications/mod_vmd/mod_vmd.c
Modified: freeswitch/trunk/src/mod/applications/mod_vmd/mod_vmd.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_vmd/mod_vmd.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_vmd/mod_vmd.c Fri Dec 5 18:24:00 2008
@@ -257,6 +257,7 @@
switch_event_t *event;
switch_status_t status;
switch_event_t *event_copy;
+ switch_channel_t *channel = switch_core_session_get_channel(vmd_info->session);
switch(vmd_info->state){
case BEEP_DETECTED:
@@ -294,6 +295,13 @@
switch_core_session_queue_event(vmd_info->session, &event);
switch_event_fire(&event_copy);
+ switch_log_printf(
+ SWITCH_CHANNEL_LOG,
+ SWITCH_LOG_INFO,
+ "<<< VMD - Beep Detected >>>\n"
+ );
+ switch_channel_set_variable(channel, "vmd_detect", "TRUE");
+
vmd_info->timestamp = 0;
}
More information about the Freeswitch-svn
mailing list