]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Set the variable even if the caller disconnects (issue #7896 reported by jsmith)
authorJoshua Colp <jcolp@digium.com>
Thu, 7 Sep 2006 16:40:15 +0000 (16:40 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 7 Sep 2006 16:40:15 +0000 (16:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42262 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_read.c

index dfa122d538f6b3938f30c3f7b936a5e52713444d..4c76ccb867b69a5e8101266dfa5cc6c6eb7b2150 100644 (file)
@@ -207,6 +207,7 @@ static int read_exec(struct ast_channel *chan, void *data)
                                }
                                res = 0;
                        } else {
+                               pbx_builtin_setvar_helper(chan, arglist.variable, tmp);
                                if (option_verbose > 2)
                                        ast_verbose(VERBOSE_PREFIX_3 "User disconnected\n");
                        }