Skip to content
Snippets Groups Projects
Commit cba23534 authored by Mark Spencer's avatar Mark Spencer
Browse files

Inherit variables across an agent (bug #3520)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4983 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 73b29984
Branches
Tags
No related merge requests found
...@@ -513,6 +513,7 @@ static int agent_call(struct ast_channel *ast, char *dest, int timeout) ...@@ -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); p->chan->cid.cid_name = strdup(ast->cid.cid_name);
else else
p->chan->cid.cid_name = NULL; p->chan->cid.cid_name = NULL;
ast_channel_inherit_variables(ast, p->chan);
res = ast_call(p->chan, p->loginchan, 0); res = ast_call(p->chan, p->loginchan, 0);
CLEANUP(ast,p); CLEANUP(ast,p);
ast_mutex_unlock(&p->lock); ast_mutex_unlock(&p->lock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment