[asterisk-commits] alecdavis: branch 1.6.1 r242140 - /branches/1.6.1/main/cdr.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jan 21 19:47:47 CST 2010
Author: alecdavis
Date: Thu Jan 21 19:47:44 2010
New Revision: 242140
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=242140
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.1/main/cdr.c
Modified: branches/1.6.1/main/cdr.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.1/main/cdr.c?view=diff&rev=242140&r1=242139&r2=242140
==============================================================================
--- branches/1.6.1/main/cdr.c (original)
+++ branches/1.6.1/main/cdr.c Thu Jan 21 19:47:44 2010
@@ -830,6 +830,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 asterisk-commits
mailing list