mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
Save the dstchannel before the call gets answered so that we would know what destination channel was dialed when we get the channel hanged up
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -568,6 +568,12 @@ static int dial_exec(struct ast_channel *chan, void *data)
|
|||||||
tmp->chan->adsicpe = chan->adsicpe;
|
tmp->chan->adsicpe = chan->adsicpe;
|
||||||
/* Place the call, but don't wait on the answer */
|
/* Place the call, but don't wait on the answer */
|
||||||
res = ast_call(tmp->chan, numsubst, 0);
|
res = ast_call(tmp->chan, numsubst, 0);
|
||||||
|
|
||||||
|
/* Save the info in cdr's that we called them */
|
||||||
|
if (chan->cdr)
|
||||||
|
ast_cdr_setdestchan(chan->cdr, tmp->chan->name);
|
||||||
|
|
||||||
|
/* check the restuls of ast_call */
|
||||||
if (res) {
|
if (res) {
|
||||||
/* Again, keep going even if there's an error */
|
/* Again, keep going even if there's an error */
|
||||||
if (option_debug)
|
if (option_debug)
|
||||||
|
|||||||
Reference in New Issue
Block a user