Marcin J. Kowalczyk
2008-Jul-07 17:05 UTC
[asterisk-users] cdr_addon_mysql - additional fields
Hi, I need help with modifying cdr_addon_mysql.c I want to have more fields in cdr table in asterisk. I've tried to modify cdr_addon_mysql.c and replace userfield with ex team (sed -e 's/userfield/team/g' ). When I try to recomplie menuselect/menuselect --check-deps menuselect.makeopts Generating embedded module rules ... make[1]: Nothing to be done for `all'. make[1]: Nothing to be done for `all'. make[1]: Nothing to be done for `all'. [CC] cdr_addon_mysql.c -> cdr_addon_mysql.o cdr_addon_mysql.c: In function 'mysql_log': cdr_addon_mysql.c:214: error: 'struct ast_cdr' has no member named 'team' cdr_addon_mysql.c:215: error: 'struct ast_cdr' has no member named 'team' cdr_addon_mysql.c:215: error: 'struct ast_cdr' has no member named 'team' make[1]: *** [cdr_addon_mysql.o] Error 1 make: *** [cdr] Error 2 asterisk-IBM:/usr/src/asterisk-addons-1.4.7# Any idea how to solve this problem? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080707/c2005101/attachment.htm
Tilghman Lesher
2008-Jul-07 17:44 UTC
[asterisk-users] cdr_addon_mysql - additional fields
On Monday 07 July 2008 12:05:16 Marcin J. Kowalczyk wrote:> I need help with modifying cdr_addon_mysql.c I want to have more > fields in cdr table in asterisk.<snip>> > Any idea how to solve this problem?Use the one in trunk. It already supports arbitrary fields, no source change necessary. Motivate the right person, and it may even get backported to 1.4 (or backport it yourself). -- Tilghman