[asterisk-commits] tilghman: trunk r89081 - /trunk/apps/app_playback.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Nov 6 22:21:27 CST 2007
Author: tilghman
Date: Tue Nov 6 22:21:27 2007
New Revision: 89081
URL: http://svn.digium.com/view/asterisk?view=rev&rev=89081
Log:
Suppress erroneous warnings on load.
Reported by: eliel
Patch by: eliel
Closes issue #11177
Modified:
trunk/apps/app_playback.c
Modified: trunk/apps/app_playback.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_playback.c?view=diff&rev=89081&r1=89080&r2=89081
==============================================================================
--- trunk/apps/app_playback.c (original)
+++ trunk/apps/app_playback.c Tue Nov 6 22:21:27 2007
@@ -328,7 +328,7 @@
static int say_init_mode(char *mode) {
if (!strcmp(mode, say_new)) {
if (say_cfg == NULL) {
- ast_log(LOG_ERROR,"There is no say.conf file to use new mode\n");
+ ast_log(LOG_ERROR, "There is no say.conf file to use new mode\n");
return -1;
}
save_say_mode(say_new);
@@ -348,7 +348,7 @@
ast_say_date_with_format = say_date_with_format;
} else if (!strcmp(mode, say_old) && say_api_buf[0] == say_new) {
restore_say_mode(NULL);
- } else {
+ } else if (strcmp(mode, say_old)) {
ast_log(LOG_WARNING, "unrecognized mode %s\n", mode);
return -1;
}
@@ -382,10 +382,10 @@
return CLI_SHOWUSAGE;
mode = a->argv[2];
if (!strcmp(mode, old_mode))
- ast_log(LOG_NOTICE, "say mode is %s already\n", mode);
+ ast_cli(a->fd, "say mode is %s already\n", mode);
else
if (say_init_mode(mode) == 0)
- ast_log(LOG_NOTICE, "init say.c from %s to %s\n", old_mode, mode);
+ ast_cli(a->fd, "setting say mode from %s to %s\n", old_mode, mode);
return CLI_SUCCESS;
}
More information about the asterisk-commits
mailing list