diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-07 04:21:27 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-07 04:21:27 +0000 |
commit | b2c71d32b04c1bec5f4331b61e18bc7c38c4d909 (patch) | |
tree | 7adfbe6c9ce57b3723ead2aad87eb4aa06f3823c /apps | |
parent | ac64977d02b92ea078363897473b1e80cd305ad5 (diff) |
Suppress erroneous warnings on load.
Reported by: eliel
Patch by: eliel
Closes issue #11177
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89081 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_playback.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_playback.c b/apps/app_playback.c index 17d34cba0..5e88a1deb 100644 --- a/apps/app_playback.c +++ b/apps/app_playback.c @@ -328,7 +328,7 @@ static int say_datetime(struct ast_channel *chan, time_t t, const char *ints, co 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 @@ static int say_init_mode(char *mode) { 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 @@ static char *__say_cli_init(struct ast_cli_entry *e, int cmd, struct ast_cli_arg 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; } |