Mysql mudules not loading

Hi all!

I’ve got Asterisk 1.8.9.2 with FreePBX 2.10 and everything is working fine except CDR REPORTS, that when clicking the search button nothing shows (even the “no data” label or something like that). I went through this post: http://www.freepbx.org/forum/freepbx/general-help/cdr-reports-not-working . I did a “module show like mysql” from Asterisk CLI but nothing shows up (0 mudles loaded). Then, what I thought was that I might missed to install the latest addons but it’s not the case; they’re installed. So I looked for them manually just in case that they might didn’t come with the package or something. They are inside /usr/lib/asterisk/modules/. In /etc/asterisk/modules.conf I’ve got autoload=yes and all the stuff that FreePBX puts in it (preload, noload, etc).

Any ideas?

Thanks veru much.

Ok, I tried to load the manually from the CLI and it seems that the modules installed with the addons package (via yum) are not compiled with the same compile-time options as the version of Asterisk that I’m running. Any ideas on how I can solve this?

Yhanks!

I forgot to post the output when doing module load res_config_mysql.so
from Asterisk CLI:

localhost*CLI> module load res_config_mysql.so
Unable to load module res_config_mysql.so
Command ‘module load res_config_mysql.so’ failed.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:777 inspect_module: Module ‘res_config_mysql.so’ was not compiled with the same compile-time options as this version of Asterisk.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:777 inspect_module: Module ‘res_config_mysql.so’ was not compiled with the same compile-time options as this version of Asterisk.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:777 inspect_module: Module ‘res_config_mysql.so’ was not compiled with the same compile-time options as this version of Asterisk.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:777 inspect_module: Module ‘res_config_mysql.so’ was not compiled with the same compile-time options as this version of Asterisk.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:777 inspect_module: Module ‘res_config_mysql.so’ was not compiled with the same compile-time options as this version of Asterisk.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:777 inspect_module: Module ‘res_config_mysql.so’ was not compiled with the same compile-time options as this version of Asterisk.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:777 inspect_module: Module ‘res_config_mysql.so’ was not compiled with the same compile-time options as this version of Asterisk.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:777 inspect_module: Module ‘res_config_mysql.so’ was not compiled with the same compile-time options as this version of Asterisk.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:777 inspect_module: Module ‘res_config_mysql.so’ was not compiled with the same compile-time options as this version of Asterisk.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:778 inspect_module: Module ‘res_config_mysql.so’ will not be initialized as it may cause instability.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:778 inspect_module: Module ‘res_config_mysql.so’ will not be initialized as it may cause instability.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:778 inspect_module: Module ‘res_config_mysql.so’ will not be initialized as it may cause instability.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:778 inspect_module: Module ‘res_config_mysql.so’ will not be initialized as it may cause instability.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:778 inspect_module: Module ‘res_config_mysql.so’ will not be initialized as it may cause instability.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:778 inspect_module: Module ‘res_config_mysql.so’ will not be initialized as it may cause instability.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:778 inspect_module: Module ‘res_config_mysql.so’ will not be initialized as it may cause instability.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:778 inspect_module: Module ‘res_config_mysql.so’ will not be initialized as it may cause instability.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:778 inspect_module: Module ‘res_config_mysql.so’ will not be initialized as it may cause instability.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:861 load_resource: Module ‘res_config_mysql.so’ could not be loaded.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:861 load_resource: Module ‘res_config_mysql.so’ could not be loaded.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:861 load_resource: Module ‘res_config_mysql.so’ could not be loaded.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:861 load_resource: Module ‘res_config_mysql.so’ could not be loaded.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:861 load_resource: Module ‘res_config_mysql.so’ could not be loaded.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:861 load_resource: Module ‘res_config_mysql.so’ could not be loaded.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:861 load_resource: Module ‘res_config_mysql.so’ could not be loaded.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:861 load_resource: Module ‘res_config_mysql.so’ could not be loaded.
[2012-03-06 10:06:49] WARNING[4535]: loader.c:861 load_resource: Module ‘res_config_mysql.so’ could not be loaded.

This is funny. It’s just me who is asking and answering lol.

This is what I did:

For some reason, yum dind’t notice me that there were conflicts between asterisk-addons versions when I tried to install all of them at once by running “yum install asterisk-addons”. It would try to install the ones already installed. Nevertheless, when I tried to install them one at a time yum notices that there is a versioning conflict. I had to remove the old ones and installing them again.

Now everything works ok.

Thanks (to me xD)