summaryrefslogtreecommitdiff
path: root/main/app.c
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2011-12-22 20:44:53 +0000
committerMatthew Jordan <mjordan@digium.com>2011-12-22 20:44:53 +0000
commitcf0c9830bf320e8b6e589b7a53b75c1fd4a94bb5 (patch)
tree0b6002bcbfc9f7a02e7c9f0ffce5dbae6cabede7 /main/app.c
parentb9bf2444e0557e9ed8321d47e3d85bb1ceab5863 (diff)
Add Asterisk TestSuite event hooks to support ConfBridge testing
This patch adds initial testsuite event hooks so that ConfBridge tests can be executed in the Asterisk TestSuite. (issue ASTERISK-19059) ........ Merged revisions 348846 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@348848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/app.c')
-rw-r--r--main/app.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/app.c b/main/app.c
index 367a78387..3e3cf5614 100644
--- a/main/app.c
+++ b/main/app.c
@@ -183,6 +183,7 @@ enum ast_getdata_result ast_app_getdata(struct ast_channel *c, const char *promp
filename = ast_strdupa(prompt);
while ((front = strsep(&filename, "&"))) {
+ ast_test_suite_event_notify("PLAYBACK", "Message: %s\r\nChannel: %s", front, c->name);
if (!ast_strlen_zero(front)) {
res = ast_streamfile(c, front, c->language);
if (res)
@@ -699,7 +700,7 @@ int ast_play_and_wait(struct ast_channel *chan, const char *fn)
{
int d = 0;
- ast_test_suite_event_notify("PLAYBACK", "Message: %s", fn);
+ ast_test_suite_event_notify("PLAYBACK", "Message: %s\r\nChannel: %s", fn, chan->name);
if ((d = ast_streamfile(chan, fn, chan->language))) {
return d;
}