Add INFO print and chan var when vmd detect is true

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10638 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Collins 2008-12-05 23:24:00 +00:00
parent 21f1aebd37
commit ff5107d225
1 changed files with 8 additions and 0 deletions

View File

@ -257,6 +257,7 @@ static void find_beep(vmd_session_info_t *vmd_info, switch_frame_t *frame)
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 @@ static void find_beep(vmd_session_info_t *vmd_info, switch_frame_t *frame)
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;
}