summaryrefslogtreecommitdiff
path: root/main/file.c
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2011-08-22 19:19:44 +0000
committerMatthew Jordan <mjordan@digium.com>2011-08-22 19:19:44 +0000
commit3b53a9cdb302417e42928225266a763bf826b9be (patch)
tree7ee015d81a6e8c0f0984817f979f5f1d0816fa47 /main/file.c
parentbac5a51e2121a63549941f3a9ce7f7a4c50454ca (diff)
Merged revisions 332817 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r332817 | mjordan | 2011-08-22 13:15:51 -0500 (Mon, 22 Aug 2011) | 4 lines Review: https://reviewboard.asterisk.org/r/1364/ This update adds a new AMI event, TestEvent, which is enabled when the TEST_FRAMEWORK compiler flag is defined. It also adds initial usage of this event to app_voicemail. The TestEvent AMI event is used extensively by the voicemail tests in the Asterisk Test Suite. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@332844 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/file.c')
-rw-r--r--main/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/file.c b/main/file.c
index 6912a37bc..f1e590385 100644
--- a/main/file.c
+++ b/main/file.c
@@ -1410,6 +1410,7 @@ int ast_stream_and_wait(struct ast_channel *chan, const char *file, const char *
{
int res = 0;
if (!ast_strlen_zero(file)) {
+ ast_test_suite_event_notify("PLAYBACK", "Message: %s", file);
res = ast_streamfile(chan, file, chan->language);
if (!res) {
res = ast_waitstream(chan, digits);