Inherit variables across an agent (bug #3520)
authorMark Spencer <markster@digium.com>
Mon, 7 Feb 2005 22:24:11 +0000 (22:24 +0000)
committerMark Spencer <markster@digium.com>
Mon, 7 Feb 2005 22:24:11 +0000 (22:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4983 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index 5a67220..db00852 100755 (executable)
@@ -513,6 +513,7 @@ static int agent_call(struct ast_channel *ast, char *dest, int timeout)
                        p->chan->cid.cid_name = strdup(ast->cid.cid_name);
                else
                        p->chan->cid.cid_name = NULL;
+               ast_channel_inherit_variables(ast, p->chan);
                res = ast_call(p->chan, p->loginchan, 0);
                CLEANUP(ast,p);
                ast_mutex_unlock(&p->lock);