Author: mjordan Date: Thu Aug 14 15:56:40 2014 New Revision: 421060 URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=421060 Log: main/file: Move test event to emit PLAYBACK event more consistently
This is being done in advance of the test for ASTERISK-23953 ........ Merged revisions 421059 from http://svn.asterisk.org/svn/asterisk/branches/1.8 Modified: branches/11/ (props changed) branches/11/main/app.c branches/11/main/file.c Propchange: branches/11/ ------------------------------------------------------------------------------ Binary property 'branch-1.8-merged' - no diff available. Modified: branches/11/main/app.c URL: http://svnview.digium.com/svn/asterisk/branches/11/main/app.c?view=diff&rev=421060&r1=421059&r2=421060 ============================================================================== --- branches/11/main/app.c (original) +++ branches/11/main/app.c Thu Aug 14 15:56:40 2014 @@ -190,7 +190,6 @@ filename = ast_strdupa(prompt); while ((front = strsep(&filename, "&"))) { - ast_test_suite_event_notify("PLAYBACK", "Message: %s\r\nChannel: %s", front, ast_channel_name(c)); if (!ast_strlen_zero(front)) { res = ast_streamfile(c, front, ast_channel_language(c)); if (res) Modified: branches/11/main/file.c URL: http://svnview.digium.com/svn/asterisk/branches/11/main/file.c?view=diff&rev=421060&r1=421059&r2=421060 ============================================================================== --- branches/11/main/file.c (original) +++ branches/11/main/file.c Thu Aug 14 15:56:40 2014 @@ -1045,6 +1045,7 @@ return -1; if (vfs && ast_applystream(chan, vfs)) return -1; + ast_test_suite_event_notify("PLAYBACK", "Message: %s\r\nChannel: %s", filename, ast_channel_name(chan)); res = ast_playstream(fs); if (!res && vfs) res = ast_playstream(vfs); @@ -1461,7 +1462,6 @@ { int res = 0; if (!ast_strlen_zero(file)) { - ast_test_suite_event_notify("PLAYBACK", "Message: %s\r\nChannel: %s", file, ast_channel_name(chan)); res = ast_streamfile(chan, file, ast_channel_language(chan)); if (!res) { res = ast_waitstream(chan, digits); -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- svn-commits mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/svn-commits