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:

Description = MySQL connection
Driver = MySQL
Server = localhost
Database = asterisk
;Port = 3306
Socket = /var/lib/mysql/mysql.sock

enabled => yes
dsn => asterisk-connector
username => asterisk
password => apassword!!!
pre-connect => yes

extensions => odbc,asterisk-odbc,ast_extensions

switch => Realtime

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


for your information

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

This wasn’t loaded

load =>