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;