summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2013-05-20 19:24:16 +0000
committerMatthew Jordan <mjordan@digium.com>2013-05-20 19:24:16 +0000
commitd8aec724943dec514117a30bb099e25b0e8b3ffe (patch)
tree2204cf873f110cc703b357616b1a4ecb051c6594
parentd8f40ed39ad1dce1857627856f964616f029092f (diff)
Set the AST_CDR_FLAG_ORIGINATED flag on originated channel's CDRs
This may alleviate some of the CDR woes with originated channels, as CDRs do like to know when a channel was originated. Eventually this will get converted to be a channel flag, so its location is still good to know post the great CDR shakeup of 2013. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389306 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--main/pbx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c
index e00ba70b1..6359c056c 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -10084,6 +10084,7 @@ static int pbx_outgoing_attempt(const char *type, struct ast_format_cap *cap, co
if (account) {
ast_cdr_setaccount(dialed, account);
}
+ ast_set_flag(ast_channel_cdr(dialed), AST_CDR_FLAG_ORIGINATED);
if (!ast_strlen_zero(cid_num) && !ast_strlen_zero(cid_name)) {
struct ast_party_connected_line connected;