From d148cde249b23d61820b91fd6baf483848cf6985 Mon Sep 17 00:00:00 2001 From: markster Date: Fri, 27 Jun 2003 23:02:52 +0000 Subject: Minor cleanups git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1126 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_festival.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'apps/app_festival.c') 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/"; -- cgit v1.2.3