Follow the below steps
yum install unixODBC unixODBC-devel libtool-ltdl libtool-ltdl-devel
Once you have done that, be sure to re-run the Asterisk configure script. Then check menuselect and res_odbc should be available.
./configure
make menuselect
make install
nano /etc/asterisk/modules.conf
; An example of loading ODBC support would be:
preload => res_odbc.so
preload => res_config_odbc.so
;
then
service asterisk restart
to verify
meetme*CLI> odbc show
ODBC DSN Settings
Name: meetme
DSN: MySQL-Asterisk
Last connection attempt: 2014-10-16 18:14:07