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
This commit is contained in:
Joshua Colp
2009-02-19 16:37:25 +00:00
parent 39a6b55183
commit 0d96c97ced

View File

@@ -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;