Summary:ASTERISK-10702: [patch] Prevent a LOG_WARNING while loading app_playback
Reporter:Eliel Sardanons (eliel)Labels:
Date Opened:2007-11-06 21:06:28.000-0600Date Closed:2007-11-06 22:19:31.000-0600
Versions:Frequency of
Environment:Attachments:( 0) app_playback.c.patch
Description:"unrecognized mode 'old'" is displayed on module load and 'old' is a recognized mode.

When we load app_playback say_api_buff[0] != "new" && say_api_buff[0] != "old" so a LOG_WARNING is displayed telling that the mode is unrecognized (and that is not right), so we only display the unrecognized message if it is different from 'old' and 'new'.
I also think that the CLI command should output a CLI message and not a LOG_NOTICE (is more clean).
Comments:By: Digium Subversion (svnbot) 2007-11-06 22:19:31.000-0600

Repository: asterisk
Revision: 89081

U   trunk/apps/app_playback.c

r89081 | tilghman | 2007-11-06 22:19:31 -0600 (Tue, 06 Nov 2007) | 5 lines

Suppress erroneous warnings on load.
Reported by: eliel
Patch by: eliel
Closes issue ASTERISK-10702