[svn-commits] alecdavis: branch 1.6.2 r242139 - /branches/1.6.2/main/cdr.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Jan 21 19:47:34 CST 2010
Author: alecdavis
Date: Thu Jan 21 19:47:30 2010
New Revision: 242139
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=242139
Log:
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/
Modified:
branches/1.6.2/main/cdr.c
Modified: branches/1.6.2/main/cdr.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/cdr.c?view=diff&rev=242139&r1=242138&r2=242139
==============================================================================
--- branches/1.6.2/main/cdr.c (original)
+++ branches/1.6.2/main/cdr.c Thu Jan 21 19:47:30 2010
@@ -829,6 +829,7 @@
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)
More information about the svn-commits
mailing list