]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add execute_on_avmd_beep
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 20 Nov 2013 20:41:28 +0000 (01:41 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 20 Nov 2013 20:41:28 +0000 (01:41 +0500)
src/mod/applications/mod_avmd/mod_avmd.c

index 5d76a28c2e86cb777294edac37fb8409406a4a6c..15f954b326827679c9e0491d3a5092e6d8c1decf 100644 (file)
@@ -539,6 +539,8 @@ static void avmd_process(avmd_session_t *session, switch_frame_t *frame)
                /*! If variance is less than threshold then we have detection */
                if(v < VARIANCE_THRESHOLD){
 
+                               switch_channel_execute_on(switch_core_session_get_channel(session), "execute_on_avmd_beep");
+
                                /*! Throw an event to FreeSWITCH */
                 status = switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, AVMD_EVENT_BEEP);
                 if(status != SWITCH_STATUS_SUCCESS) {