mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Inherit variables across an agent (bug #3520)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4983 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user