[svn-commits] mjordan: branch 11 r429517 - /branches/11/res/res_agi.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Dec 12 16:42:42 CST 2014
Author: mjordan
Date: Fri Dec 12 16:42:35 2014
New Revision: 429517
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=429517
Log:
res/res_agi: Make Verbose message for 'stream file' match other playbacks
The Verbose message displayed when a file is played back via 'stream file'
was formatted differently than other playbacks:
* It didn't include the channel name
* It didn't include the channel language
It does, however, include the playback offset as well as any escape digits.
That information was kept; however, this patch updates the formatting to more
closely match the Verbose messages displayed when a file is played back by
'control stream file', Playback, ControlPlayback, or any other file playback
operation.
Modified:
branches/11/res/res_agi.c
Modified: branches/11/res/res_agi.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/res/res_agi.c?view=diff&rev=429517&r1=429516&r2=429517
==============================================================================
--- branches/11/res/res_agi.c (original)
+++ branches/11/res/res_agi.c Fri Dec 12 16:42:35 2014
@@ -2014,8 +2014,9 @@
if ((vfs = ast_openvstream(chan, argv[2], ast_channel_language(chan)))) {
ast_debug(1, "Ooh, found a video stream, too\n");
}
-
- ast_verb(3, "Playing '%s' (escape_digits=%s) (sample_offset %ld)\n", argv[2], edigits, sample_offset);
+ ast_verb(3, "<%s> Playing '%s.%s' (escape_digits=%s) (sample_offset %ld) (language '%s')\n",
+ ast_channel_name(chan), argv[2], ast_getformatname(ast_channel_writeformat(chan)),
+ edigits, sample_offset, S_OR(ast_channel_language(chan), "default"));
ast_seekstream(fs, 0, SEEK_END);
max_length = ast_tellstream(fs);
More information about the svn-commits
mailing list