diff --git a/src/mod/applications/mod_cv/mod_cv.cpp b/src/mod/applications/mod_cv/mod_cv.cpp index baf753b711..adbdc5df2b 100644 --- a/src/mod/applications/mod_cv/mod_cv.cpp +++ b/src/mod/applications/mod_cv/mod_cv.cpp @@ -483,6 +483,8 @@ static switch_status_t video_thread_callback(switch_core_session_t *session, swi } switch_channel_execute_on(channel, "execute_on_cv_detect_off_primary"); + reset_stats(&context->nestDetected); + reset_stats(&context->detected); } context->detect_event = 0; @@ -525,6 +527,7 @@ static switch_status_t video_thread_callback(switch_core_session_t *session, swi switch_event_fire(&event); } switch_channel_execute_on(channel, "execute_on_cv_detect_off_nested"); + reset_stats(&context->nestDetected); } context->nest_detect_event = 0;