[asterisk-commits] trunk r28445 - /trunk/res/res_musiconhold.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu May 18 20:11:35 MST 2006
Author: russell
Date: Thu May 18 22:11:35 2006
New Revision: 28445
URL: http://svn.digium.com/view/asterisk?rev=28445&view=rev
Log:
when displaying the list of registered music on hold classes, only show
the format if the mode is not "files", because the field has no meaning
in that case
Modified:
trunk/res/res_musiconhold.c
Modified: trunk/res/res_musiconhold.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_musiconhold.c?rev=28445&r1=28444&r2=28445&view=diff
==============================================================================
--- trunk/res/res_musiconhold.c (original)
+++ trunk/res/res_musiconhold.c Thu May 18 22:11:35 2006
@@ -1133,11 +1133,12 @@
AST_LIST_LOCK(&mohclasses);
AST_LIST_TRAVERSE(&mohclasses, class, list) {
ast_cli(fd, "Class: %s\n", class->name);
- ast_cli(fd, "\tMode: %s\n", S_OR(class->mode,"<none>"));
+ ast_cli(fd, "\tMode: %s\n", S_OR(class->mode, "<none>"));
ast_cli(fd, "\tDirectory: %s\n", S_OR(class->dir, "<none>"));
if (ast_test_flag(class, MOH_CUSTOM))
ast_cli(fd, "\tApplication: %s\n", S_OR(class->args, "<none>"));
- ast_cli(fd, "\tFormat: %s\n", ast_getformatname(class->format));
+ if (strcasecmp(class->mode, "files"))
+ ast_cli(fd, "\tFormat: %s\n", ast_getformatname(class->format));
}
AST_LIST_UNLOCK(&mohclasses);
More information about the asterisk-commits
mailing list