[asterisk-users] Setting custom field in CDR

Matt Riddell matt at venturevoip.com
Sun Dec 23 18:44:14 CST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steve Edwards wrote:
> On Thu, 6 Dec 2007, Atis Lezdins wrote:
> 
>> Only custom field you can use for now is CDR(userfield) and if you want
>> multiple values, you can separate them by something like #
> 
> Adding multiple fields using userfield is a major hack that will 
> repeatedly bite you for years.
> 
> cdr_addon_mysql.c in the Asterisk addons package works great. It will take 
> a minor bit of C skills to cut and paste to add new columns.

I wrote a patch for Asterisk (which is on the bugtracker) some time ago
to add 5 userfields.  We still use this on our systems, but the patch on
the tracker has grown somewhat stale and will not be included because it
was deemed the incorrect way to do it (if you want to do it properly you
should allow some custom configuration in cdr_mysql.conf etc).

If you need any help applying the patch drop me a line and I'll see what
I can do.

- --
Kind Regards,

Matt Riddell
Director
_______________________________________________

http://www.venturevoip.com (Great new VoIP end to end solution)
http://www.venturevoip.com/news.php (Daily Asterisk News - html)
http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHbwDdDQNt8rg0Kp4RAqtSAJ9x6+rEXLa5/MnhjgIHM3mfexXVCACeLPPp
yEE7cwdyISAcalJlxbjT6QI=
=CBu0
-----END PGP SIGNATURE-----




More information about the asterisk-users mailing list