aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_festival.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-27 23:02:52 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-27 23:02:52 +0000
commitd148cde249b23d61820b91fd6baf483848cf6985 (patch)
treeda6a8c446c46fb6bd6c6dd32ce0bc061ff3bc7ac /apps/app_festival.c
parentbc12b3a7d31aca35b3eb83e14a7f7f238c88bbfb (diff)
Minor cleanups
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1126 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_festival.c')
-rwxr-xr-xapps/app_festival.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/app_festival.c b/apps/app_festival.c
index 4801edc4a..58f2d77ff 100755
--- a/apps/app_festival.c
+++ b/apps/app_festival.c
@@ -46,8 +46,9 @@ static char *app = "Festival";
static char *synopsis = "Say text to the user";
static char *descrip =
-" Festival(): Connect to Festival, send the argument, get back the waveform,"
-"play it to the user.\n";
+" Festival(text[|intkeys]): Connect to Festival, send the argument, get back the waveform,"
+"play it to the user, allowing any given interrupt keys to immediately terminate and return\n"
+"the value.\n";
STANDARD_LOCAL_USER;
@@ -302,9 +303,7 @@ static int festival_exec(struct ast_channel *chan, void *data)
if (!(temp = ast_variable_retrieve(cfg, "general", "usecache"))) {
usecache=0;
} else {
- if (strcasecmp(temp,"yes")==0) {
- usecache=1;
- }
+ usecache = ast_true(temp);
}
if (!(cachedir = ast_variable_retrieve(cfg, "general", "cachedir"))) {
cachedir = "/tmp/";