[Home]

Summary:ASTERISK-06344: add custom fields to cdr_mysql
Reporter:Michael Labuschke (zigman)Labels:
Date Opened:2006-02-16 18:15:26.000-0600Date Closed:2006-04-26 15:43:34
Priority:MajorRegression?No
Status:Closed/CompleteComponents:CDR/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) mysql-cdr.patch
Description:this patch adds ( like cdr_custom ) custom fields to store in a mysql db.
you need to add 2 new fields to cdr_mysql.conf

fields=,hangupcause,outprefix
fieldsvar=,'${DIALSTATUS}','${CDR(outprefix)}'

fields defines the additional fields in the db.
fieldsvar defines the vars to be stored.

if fields and fieldsvar is ommited the old table definition is used.

i know this is a very bad hack. i just want to share it and see if it makes sense to add more work to it to be included in *-addons ( maybe as cdr_mysql_custom).

Comments:By: Michael Labuschke (zigman) 2006-02-16 18:18:41.000-0600

never mind. just saw i duped it. sorry for it.

By: wILMAR cAMPOS (willcampos) 2006-03-28 18:32:44.000-0600

Is there any way to add a custom field to put the origin caller IP address?

By: Matt O'Gorman (mogorman) 2006-04-26 15:43:15

said it was a duplicate.

mog