[asterisk-commits] qwell: branch 1.4 r51146 -
/branches/1.4/main/file.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Jan 16 10:36:54 MST 2007
Author: qwell
Date: Tue Jan 16 11:36:53 2007
New Revision: 51146
URL: http://svn.digium.com/view/asterisk?view=rev&rev=51146
Log:
Display more useful output when streaming files.
Include the channel name to which the file is being played.
Issue 8828, patch by junky.
Modified:
branches/1.4/main/file.c
Modified: branches/1.4/main/file.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/file.c?view=diff&rev=51146&r1=51145&r2=51146
==============================================================================
--- branches/1.4/main/file.c (original)
+++ branches/1.4/main/file.c Tue Jan 16 11:36:53 2007
@@ -796,10 +796,9 @@
return -1;
if (vfs && ast_playstream(vfs))
return -1;
-#if 1
if (option_verbose > 2)
- ast_verbose(VERBOSE_PREFIX_3 "Playing '%s' (language '%s')\n", filename, preflang ? preflang : "default");
-#endif
+ ast_verbose(VERBOSE_PREFIX_3 "<%s> Playing '%s' (language '%s')\n", chan->name, filename, preflang ? preflang : "default");
+
return 0;
}
ast_log(LOG_WARNING, "Unable to open %s (format %s): %s\n", filename, ast_getformatname_multiple(fmt, sizeof(fmt), chan->nativeformats), strerror(errno));
More information about the asterisk-commits
mailing list