mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
Merged revisions 51146 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51146 | qwell | 2007-01-16 11:36:53 -0600 (Tue, 16 Jan 2007) | 6 lines Display more useful output when streaming files. Include the channel name to which the file is being played. Issue 8828, patch by junky. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -799,10 +799,9 @@ int ast_streamfile(struct ast_channel *chan, const char *filename, const char *p
|
||||
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));
|
||||
|
Reference in New Issue
Block a user