From: Joshua Colp Date: Thu, 19 Feb 2009 16:37:25 +0000 (+0000) Subject: If we are able to create a speech structure unset the ERROR variable in case it was... X-Git-Tag: 1.4.24-rc1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d96c97cedaa271cdd4bc4356ac1d69d71eecf18;p=thirdparty%2Fasterisk.git 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.4@177383 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c index 702e9348ff..c43fc03e3b 100644 --- a/apps/app_speech_utils.c +++ b/apps/app_speech_utils.c @@ -378,6 +378,8 @@ static int speech_create(struct ast_channel *chan, void *data) datastore->data = speech; ast_channel_datastore_add(chan, datastore); + pbx_builtin_setvar_helper(chan, "ERROR", NULL); + ast_module_user_remove(u); return 0;