From 7e2f9d59ef3ef80696c590119b138327bdb673b9 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Thu, 19 Feb 2009 16:40:16 +0000 Subject: [PATCH] Merged revisions 177384 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r177384 | file | 2009-02-19 12:38:41 -0400 (Thu, 19 Feb 2009) | 10 lines Merged revisions 177383 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r177383 | file | 2009-02-19 12:37:25 -0400 (Thu, 19 Feb 2009) | 3 lines If we are able to create a speech structure unset the ERROR variable in case it was previously set. (issue #LUMENVOX-13) ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@177386 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_speech_utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c index 1b8348a047..cddaaeea93 100644 --- a/apps/app_speech_utils.c +++ b/apps/app_speech_utils.c @@ -376,6 +376,7 @@ static int speech_create(struct ast_channel *chan, void *data) pbx_builtin_setvar_helper(chan, "ERROR", "1"); return 0; } + pbx_builtin_setvar_helper(chan, "ERROR", NULL); datastore->data = speech; ast_channel_datastore_add(chan, datastore);