mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-21 01:01:02 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user