Add the format of the file that is currently being played to the verbose message.
authorRussell Bryant <russell@russellbryant.com>
Wed, 7 Mar 2007 01:07:16 +0000 (01:07 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 7 Mar 2007 01:07:16 +0000 (01:07 +0000)
(issue #9105, junky)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@58208 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/file.c

index c259d5a..e853258 100644 (file)
@@ -791,7 +791,7 @@ int ast_streamfile(struct ast_channel *chan, const char *filename, const char *p
                if (vfs && ast_playstream(vfs))
                        return -1;
                if (option_verbose > 2)
-                       ast_verbose(VERBOSE_PREFIX_3 "<%s> Playing '%s' (language '%s')\n", chan->name, filename, preflang ? preflang : "default");
+                       ast_verbose(VERBOSE_PREFIX_3 "<%s> Playing '%s.%s' (language '%s')\n", chan->name, filename, ast_getformatname(chan->writeformat), preflang ? preflang : "default");
 
                return 0;
        }