]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
mixmonitor: Add a test event
authorJonathan Rose <jrose@digium.com>
Tue, 30 Oct 2012 18:55:58 +0000 (18:55 +0000)
committerJonathan Rose <jrose@digium.com>
Tue, 30 Oct 2012 18:55:58 +0000 (18:55 +0000)
This test event is being used to fix the  mixmonitor_audiohook_inherit
test.
........

Merged revisions 375484 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@375485 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_mixmonitor.c

index d53cac6811286c848e7a1314f4d487296a89b7dc..73a9245519f5770ec4b6772bdea6399b988191e5 100644 (file)
@@ -52,6 +52,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/autochan.h"
 #include "asterisk/manager.h"
 #include "asterisk/mod_format.h"
+#include "asterisk/test.h"
 
 /*** DOCUMENTATION
        <application name="MixMonitor" language="en_US">
@@ -464,6 +465,13 @@ static void *mixmonitor_thread(void *obj)
 
                ast_audiohook_lock(&mixmonitor->audiohook);
        }
+
+       /* Test Event */
+       ast_test_suite_event_notify("MIXMONITOR_END", "Channel: %s\r\n"
+                                                                       "File: %s\r\n",
+                                                                       mixmonitor->autochan->chan->name,
+                                                                       mixmonitor->filename);
+
        ast_audiohook_unlock(&mixmonitor->audiohook);
 
        ast_autochan_destroy(mixmonitor->autochan);