From 8a548e12db3bfcf249be7ccd9a8302ea93fc02b1 Mon Sep 17 00:00:00 2001 From: Alec L Davis Date: Fri, 22 Jan 2010 01:47:44 +0000 Subject: [PATCH] Add Dialed Number Identifier (DNID) field to cdr. Branch support, retains ABI, if backend CDR collector is adaptive then database requires 'dnid' field to be added, otherwise no functional changes. Reported by: alecdavis Tested by: alecdavis Patch cdr_dnid.diff2.txt uploaded by alecdavis (license 585) Review: https://reviewboard.asterisk.org/r/455/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@242140 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/cdr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main/cdr.c b/main/cdr.c index 2ec095c0e2..805a476723 100644 --- a/main/cdr.c +++ b/main/cdr.c @@ -830,6 +830,7 @@ static void set_one_cid(struct ast_cdr *cdr, struct ast_channel *c) cdr->clid[0] = '\0'; } ast_copy_string(cdr->src, S_OR(num, ""), sizeof(cdr->src)); + ast_cdr_setvar(cdr, "dnid", S_OR(c->cid.cid_dnid, ""), 0); } int ast_cdr_setcid(struct ast_cdr *cdr, struct ast_channel *c) -- 2.47.2