diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-16 17:36:53 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-16 17:36:53 +0000 |
commit | 604172cd8cd8393143a0f82b7c5f9c0250fa5527 (patch) | |
tree | 93a7f8239ea7a06df8a6d5d6ac6fe749615c7292 /main/file.c | |
parent | ffe08001a6c0cf68d8a31a33b6bd0c1880037401 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@51146 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/file.c')
-rw-r--r-- | main/file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/file.c b/main/file.c index 6c7863262..5192984d3 100644 --- a/main/file.c +++ b/main/file.c @@ -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)); |