Asterisk 12 - addons

Guys,
i have installed asterisk-12, when i added addons i get the below error.

any idea what is the fix ?

cdr_addon_mysql.c: In function ‘mysql_log’:
cdr_addon_mysql.c:252: warning: passing argument 1 of ‘ast_cdr_setvar’ from incompatible pointer type
/usr/include/asterisk/cdr.h:386: note: expected ‘const char *’ but argument is of type ‘struct ast_cdr *’
cdr_addon_mysql.c:252: error: too many arguments to function ‘ast_cdr_setvar’
cdr_addon_mysql.c:259: warning: passing argument 1 of ‘ast_cdr_setvar’ from incompatible pointer type

so i can clearly see the /usr/include/asterisk/cdr.h has wrong argument passed from /usr/src/asterisk-addons-1.6.2.4/cdr/cdr_addon_mysql.c

i have asterisk-12.1.0.tar.gz installed.
Addons i tried are asterisk-addons-1.6.2.4

Why are you using incompatible versions? You really I mean REALLY need to read the change log between version. Since Asterisk 1.8 the addons package disappear. You select the car MySQL via make menu select.

And asterisk 12 is a completely different core.

i did not understand really.
which one is the compatible version of addons for asterisk 12?

The ones that are included in its source tree.

oh ok. i should have read changelog :wink: