RESOLUTION: [Asterisk-Users] SetCDRUserField not working in A@H?

Michael Collins mcollins at fcnetwork.biz
Wed Feb 1 12:46:13 MST 2006


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 at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Paul
Hewlett
Sent: Wednesday, February 01, 2006 6:05 AM
To: asterisk-users at lists.digium.com
Subject: Re: [Asterisk-Users] SetCDRUserField not working in A at H?

On Wednesday 01 February 2006 10:54, Michael Collins wrote:
> I have A at H 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 A at 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



More information about the asterisk-users mailing list