[asterisk-commits] tilghman: branch 1.6.0 r115597 - in /branches/1.6.0: ./ cdr/cdr_pgsql.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat May 10 09:22:12 CDT 2008


Author: tilghman
Date: Sat May 10 09:22:11 2008
New Revision: 115597

URL: http://svn.digium.com/view/asterisk?view=rev&rev=115597
Log:
Merged revisions 115596 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
r115596 | tilghman | 2008-05-10 09:19:41 -0500 (Sat, 10 May 2008) | 2 lines

Ensure that "calldate" is acceptable for a column name.

........

Modified:
    branches/1.6.0/   (props changed)
    branches/1.6.0/cdr/cdr_pgsql.c

Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.0/cdr/cdr_pgsql.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/cdr/cdr_pgsql.c?view=diff&rev=115597&r1=115596&r2=115597
==============================================================================
--- branches/1.6.0/cdr/cdr_pgsql.c (original)
+++ branches/1.6.0/cdr/cdr_pgsql.c Sat May 10 09:22:11 2008
@@ -140,6 +140,9 @@
 		AST_RWLIST_TRAVERSE(&psql_columns, cur, list) {
 			/* For fields not set, simply skip them */
 			ast_cdr_getvar(cdr, cur->name, &value, buf, sizeof(buf), 0, 0);
+			if (strcmp(cur->name, "calldate") == 0 && !value) {
+				ast_cdr_getvar(cdr, "start", &value, buf, sizeof(buf), 0, 0);
+			}
 			if (!value) {
 				if (cur->notnull && !cur->hasdefault) {
 					/* Field is NOT NULL (but no default), must include it anyway */




More information about the asterisk-commits mailing list