I’ve asterisk installed on Ubuntu 10.4.

I’ve decided to output CDR on MySQL.
So, using Synaptic I’ve:

  • installed mysql-server, mysql-client, both ver. 5.1;
  • installed asterisk-mysql ver. (after this installation there are, and in the /usr/lib/asterisk/modules).

So, I’ve modified the /etc/asterisk/modules.conf adding:

  • load =>

But this module doesn’t appear in the module show CLI command.
Also, I’ve commented the “Autoload=yes” in the modules.conf to be sure that the modules list in the CLI command is clean (there is the only

Please, any suggestion ?

Thanks too too much.

What happens if you try to load the mysql module from the Asterisk CLI, e.g.:

module load


There is the following error:
Unable to load module
Command ‘module load’ failed.
[Nov 16 09:15:00] WARNING[2968]: loader.c:716 inspect_module: Module ‘’ was not compiled with the same compile-time options as this version of Asterisk.
[Nov 16 09:15:00] WARNING[2968]: loader.c:717 inspect_module: Module ‘’ will not be initialized as it may cause instability.
[Nov 16 09:15:00] WARNING[2968]: loader.c:800 load_resource: Module ‘’ could not be loaded.

What I have to do ?


I believe I saw this a while back when installing the MySQL for asterisk. The issue shows itself when you compile Asterisk. Now, not to sound too useless, but I can’t remember what it is. I just know that you see it fail when you do the build. If you can post the logs of building asterisk or just compile it and >> it to a file so we can sift through the data, I’m sure a solution can be found.

Have you compiled asterisk_addons as cdr mysql isn’t in base asterisk


Hi all,

I’ve solved with these commands:

~# apt-get build-dep asterisk-mysql
~# apt-get -b source asterisk-mysql
~# dpkg -i asterisk-mysql_1.6.2.0-1_i386.deb

found on the web.

Thank so much.