Merged revisions 51146 via svnmerge from
authorJason Parker <jparker@digium.com>
Tue, 16 Jan 2007 17:39:39 +0000 (17:39 +0000)
committerJason Parker <jparker@digium.com>
Tue, 16 Jan 2007 17:39:39 +0000 (17:39 +0000)
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

main/file.c

index 7488141..0149d80 100644 (file)
@@ -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));