mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 08:31:02 +00:00
Send callerid on callback agents (bug #103)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -375,6 +375,12 @@ static int agent_call(struct ast_channel *ast, char *dest, int timeout)
|
|||||||
/* Call on this agent */
|
/* Call on this agent */
|
||||||
if (option_verbose > 2)
|
if (option_verbose > 2)
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "outgoing agentcall, to agent '%s', on '%s'\n", p->agent, p->chan->name);
|
ast_verbose(VERBOSE_PREFIX_3 "outgoing agentcall, to agent '%s', on '%s'\n", p->agent, p->chan->name);
|
||||||
|
if (p->chan->callerid)
|
||||||
|
free(p->chan->callerid);
|
||||||
|
if (ast->callerid)
|
||||||
|
p->chan->callerid = strdup(ast->callerid);
|
||||||
|
else
|
||||||
|
p->chan->callerid = NULL;
|
||||||
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);
|
||||||
|
Reference in New Issue
Block a user