Michael Collins
2006-Feb-01 12:46 UTC
RESOLUTION: [Asterisk-Users] SetCDRUserField not working in A@H?
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: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Paul Hewlett Sent: Wednesday, February 01, 2006 6:05 AM To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] SetCDRUserField not working in A@H? On Wednesday 01 February 2006 10:54, Michael Collins wrote:> I have A@H 2.1, running * 1.2.1. I am trying to put information intothe> userfield with SetCDRUserField and AppendCDRUserField. However, thefield> is never populated in the cdr - I've checked the csv files and theMySQL> asteriskcdrdb table. The field is defined in the MySQL table, but is > always empty. The csv files that get created don't have a userfieldat> all, that is, there isn't an empty string (like "" ) but rather thereis> 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 A@H 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