projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b1917f
)
Send callerid on callback agents (bug #103)
author
Mark Spencer
<markster@digium.com>
Thu, 14 Aug 2003 20:42:25 +0000
(20:42 +0000)
committer
Mark Spencer
<markster@digium.com>
Thu, 14 Aug 2003 20:42:25 +0000
(20:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1329
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_agent.c
patch
|
blob
|
history
diff --git
a/channels/chan_agent.c
b/channels/chan_agent.c
index
3a67573
..
5db7ded
100755
(executable)
--- a/
channels/chan_agent.c
+++ b/
channels/chan_agent.c
@@
-375,6
+375,12
@@
static int agent_call(struct ast_channel *ast, char *dest, int timeout)
/* Call on this agent */
if (option_verbose > 2)
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);
CLEANUP(ast,p);
ast_mutex_unlock(&p->lock);