Suppress erroneous warnings on load.

Reported by: eliel
Patch by: eliel
Closes issue #11177


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89081 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Tilghman Lesher 18 years ago
parent 6a9fbeaf68
commit 6f3f010ca0

@ -348,7 +348,7 @@ static int say_init_mode(char *mode) {
ast_say_date_with_format = say_date_with_format; ast_say_date_with_format = say_date_with_format;
} else if (!strcmp(mode, say_old) && say_api_buf[0] == say_new) { } else if (!strcmp(mode, say_old) && say_api_buf[0] == say_new) {
restore_say_mode(NULL); restore_say_mode(NULL);
} else { } else if (strcmp(mode, say_old)) {
ast_log(LOG_WARNING, "unrecognized mode %s\n", mode); ast_log(LOG_WARNING, "unrecognized mode %s\n", mode);
return -1; return -1;
} }
@ -382,10 +382,10 @@ static char *__say_cli_init(struct ast_cli_entry *e, int cmd, struct ast_cli_arg
return CLI_SHOWUSAGE; return CLI_SHOWUSAGE;
mode = a->argv[2]; mode = a->argv[2];
if (!strcmp(mode, old_mode)) 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 else
if (say_init_mode(mode) == 0) 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; return CLI_SUCCESS;
} }

Loading…
Cancel
Save