mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
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/branches/1.4@51146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -796,10 +796,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