Paul, Thanks - it worked! For the record, this is exactly what I did:
cd/usr/src/asterisk/cdr grep -in "userfield" cdr_csv.c (to find the line that had "#define CSV_LOGUSERFIELD 1" commented out) Opened cdr_csv.c and removed the /* and */ comment marks Saved & exited After shutting down * I went to /usr/src/asterisk and did the usual: Make clean Make Make install I also added this line in the [global] section of cdr_mysql.conf: Userfield=1 After a reboot I am getting userfield data in both my csv files and in the MySQL database! Thanks again for all of your help! -MC -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Hewlett Sent: Wednesday, February 01, 2006 6:05 AM To: [email protected] Subject: Re: [Asterisk-Users] SetCDRUserField not working in [EMAIL PROTECTED] On Wednesday 01 February 2006 10:54, Michael Collins wrote: > I have [EMAIL PROTECTED] 2.1, running * 1.2.1. I am trying to put > information into the > userfield with SetCDRUserField and AppendCDRUserField. However, the field > is never populated in the cdr - I've checked the csv files and the MySQL > asteriskcdrdb table. The field is defined in the MySQL table, but is > always empty. The csv files that get created don't have a userfield at > all, that is, there isn't an empty string (like "" ) but rather there is > nothing. Here's a sample: > The Userfield is not defined by default. You have to set a define during compilation of asterisk - I do not know [EMAIL PROTECTED] but look in the files cdr/cdr_csv.c cdr/cdr-sqlite.c for USERFIELD and in /etc/asterisk/cdr_mysql.conf for userfield=1 Paul -- Paul Hewlett - CottonPickinMinds - www.cottonpickinminds.co.za Tel: +27 21 852 8812 Cel: +27 84 420 9282 Fax: +27 86 672 0563 -- _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
