summaryrefslogtreecommitdiff
path: root/main/channel.c
diff options
context:
space:
mode:
authorDavid Vossel <dvossel@digium.com>2009-06-03 20:30:10 +0000
committerDavid Vossel <dvossel@digium.com>2009-06-03 20:30:10 +0000
commitc42344b31902f91ea92d6d8099b6de64e576abe7 (patch)
tree1772806c1fcb7e20afe276c4594bb05ce065bd21 /main/channel.c
parent0c47c8f448c2ad12740a9f897bf0f66b7527acdb (diff)
ast_call_forward() todo notes and originate flag copy.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@198954 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c
index 9fc89255a..3dcd380fa 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -4001,6 +4001,7 @@ struct ast_channel *ast_call_forward(struct ast_channel *caller, struct ast_chan
while (ast_channel_trylock(new)) {
CHANNEL_DEADLOCK_AVOIDANCE(orig);
}
+ ast_copy_flags(new->cdr, orig->cdr, AST_CDR_FLAG_ORIGINATED);
ast_string_field_set(new, accountcode, orig->accountcode);
ast_party_caller_copy(&new->cid, &orig->cid);
ast_party_connected_line_copy(&new->connected, &orig->connected);