[Asterisk-cvs] asterisk/cdr cdr_odbc.c,1.8,1.9

jeremy at lists.digium.com jeremy at lists.digium.com
Sun Jan 11 00:09:16 CST 2004


Update of /usr/cvsroot/asterisk/cdr
In directory mongoose.digium.com:/tmp/cvs-serv24246

Modified Files:
	cdr_odbc.c 
Log Message:
Log cdr user data, if enabled


Index: cdr_odbc.c
===================================================================
RCS file: /usr/cvsroot/asterisk/cdr/cdr_odbc.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- cdr_odbc.c	4 Jan 2004 05:11:53 -0000	1.8
+++ cdr_odbc.c	11 Jan 2004 06:01:02 -0000	1.9
@@ -73,8 +73,8 @@
 	{
 		sprintf(sqlcmd,"INSERT INTO cdr "
 		"(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,"
-		"lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) "
-		"VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
+		"lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid,userfield) "
+		"VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
 	}
 	else
 	{
@@ -144,6 +144,7 @@
 	if((loguniqueid != NULL) && ((strcmp(loguniqueid, "1") == 0) || (strcmp(loguniqueid, "yes") == 0)))
 	{
 		SQLBindParameter(ODBC_stmt, 15, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, 0, 0, cdr->uniqueid, 0, NULL);
+		SQLBindParameter(ODBC_stmt, 16, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, 0, 0, cdr->userfield, 0, NULL);
 	}
 
 	if(connected)




More information about the svn-commits mailing list