Asterisk Real Time No such switch 'Realtime'

Hi I am trying to setup asterisk realtime with odbc and I can’t get it to function correctly.

I get a lot of errors stating with this:
No such switch ‘Realtime’

I’m confident the re_odbc.conf is OK as I am using the same link for func_odbc which functions just fine.

My configuration:

odbc.ini
[asterisk-connector]
Description = MySQL connection
Driver = MySQL
Server = localhost
Database = asterisk
;Port = 3306
Socket = /var/lib/mysql/mysql.sock

res_odbc.conf
[asterisk-odbc]
enabled => yes
dsn => asterisk-connector
username => asterisk
password => apassword!!!
pre-connect => yes

extconfig.conf
[settings]
extensions => odbc,asterisk-odbc,ast_extensions

extensions.conf
[default]
switch => Realtime

If anyone has any suggestions why this is failing I would be very grateful.

Thanks

for your information

realtime mysql status
general connected to asterisk@127.0.0.1, port 3306 with username asterisk for 0 seconds.

This wasn’t loaded

load => pbx_realtime.so