FreePBX | Register | Issues | Wiki | Portal | Support

Unable to load module app_mysql.so


(Dcanivel) #1

Hi, I’ve setup a CallerID lookup mysql database, but I dont know how to make the module for mysql load into the asterisk. I keep getting the error:

asterisk -x "module show like mysql"
Module Description Use Count Status Support Level
0 modules loaded

asterisk -vvrx 'module load app_mysql.so’
Unable to load module app_mysql.so
Command ‘module load app_mysql.so’ failed.

what should I do to make it load? I’ve the last version of freepbx.

thanks


(James Zhu) #2

Please Set log level higher, maybe the system would give you more debug info.


#3

Unless your Asterisk was compiled with mysql support, it won’t work, you probably have (and should use) the odbc interface into whatever backend you want.


(Dcanivel) #4

Thanks I was think about that too… Do you believe I can stop and just recompile it with the option, and turn freepbx back on?, or it needs a full install again?


#5

You could and freepbx wouldn’complaun, but the mysql stuff is deprecated , why not use the odvc driver you already have

www.voipsupport.it/wiki/index.php/How_to_set_up_an_Asterisk_ODBC_data_source_on_Linux


(Dcanivel) #6

Thanks dicko, Im trying to use the mysql suff because I want to use CIDLookup Source in freepbx, and it does not have ODBC… only MYSQL…, I will try recomplie, if does not work will try to understand how to do it with ODBC.

Thanks