Hello,
I installed mysql odbc (asterisk 1.8) :
unixODBC unixODBC-devel libtool-ltdl libtool-ltdl-devel
yum install mysql-connector-odbc
i compiled my asterisk ,
configured /etc/odbcinst.ini and /etc/odbc.in
when i launch :
echo “select 1” | isql -v asterisk-connector
i get :
±--------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
±--------------------------------------+
SQL> select 1
±--------------------+
| 1 |
±--------------------+
| 1 |
±--------------------+
SQLRowCount returns 1
but when i use CLR
module load res_odbc.so
Unable to load module res_odbc.so
Command ‘module load res_odbc.so’ failed.
[Jun 18 09:41:25] WARNING[9577]: loader.c:777 inspect_module: Module ‘res_odbc.so’ was not compiled with the same compile-time options as this version of Asterisk.
[Jun 18 09:41:25] WARNING[9577]: loader.c:778 inspect_module: Module ‘res_odbc.so’ will not be initialized as it may cause instability.
[Jun 18 09:41:25] WARNING[9577]: loader.c:861 load_resource: Module ‘res_odbc.so’ could not be loaded.
Can someone help me to resole this issue?
Thanks;