[asterisk-commits] alecdavis: trunk r239525 - /trunk/main/cdr.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 12 12:56:05 CST 2010


Author: alecdavis
Date: Tue Jan 12 12:55:54 2010
New Revision: 239525

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=239525
Log:
add Dialed Number Identifier (DNID) field to cdr records.

reviewboard link: https://reviewboard.asterisk.org/r/455/

  Reported by: alecdavis
  Tested by: alecdavis
  Patch
	 cdr_dnid.diff2.txt uploaded by alecdavis (license 585)


Modified:
    trunk/main/cdr.c

Modified: trunk/main/cdr.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/cdr.c?view=diff&rev=239525&r1=239524&r2=239525
==============================================================================
--- trunk/main/cdr.c (original)
+++ trunk/main/cdr.c Tue Jan 12 12:55:54 2010
@@ -863,6 +863,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