diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-19 16:37:25 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-19 16:37:25 +0000 |
commit | 1659466b0b853a24e33868884f79b8c0857822b8 (patch) | |
tree | 0e60e20a2785fd47f1f0d661afeaa2b450138352 | |
parent | c34b77f216b53c4bfbd6c008b8573d6cb6753722 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@177383 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_speech_utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c index 702e9348f..c43fc03e3 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; |