mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-14 22:08:28 +00:00
mixmonitor: Add a test event
This test event is being used to fix the mixmonitor_audiohook_inherit test. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@375484 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -51,6 +51,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
#include "asterisk/channel.h"
|
||||
#include "asterisk/autochan.h"
|
||||
#include "asterisk/manager.h"
|
||||
#include "asterisk/test.h"
|
||||
|
||||
/*** DOCUMENTATION
|
||||
<application name="MixMonitor" language="en_US">
|
||||
@@ -351,6 +352,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);
|
||||
|
||||
Reference in New Issue
Block a user