Musiconhold.conf from MySQL with odbc does not work

Hi,

I have done the Static Realtime assignment from Asterisk: The Future of Telephony(page 268) (with MySQL instead of postgreql).

But in the end i don’t get the output when entering CLI> moh show classes
arend-desktopCLI> moh show classes
arend-desktop
CLI>

It should mention Class: general Mode: files Directory: etc…

The table ast_config i have filled in. See outcome below from in console mysql:
mysql> select * from ast_config
-> ;
±—±-----------±-----------±----------±-----------------±---------±----------±----------------------+
| id | cat_metric | var_metric | commented | filename | category | var_name | var_val |
±—±-----------±-----------±----------±-----------------±---------±----------±----------------------+
| 1 | 0 | 0 | 0 | musiconhold.conf | general | mode | files |
| 2 | 0 | 0 | 0 | musiconhold.conf | general | directory | /var/lib/asterisk/moh |
±—±-----------±-----------±----------±-----------------±---------±----------±----------------------+

I do see some good output comments when starting the asterisk console:
asterisk -vvvvr
== Parsing ‘/etc/asterisk/asterisk.conf’: == Found
== Parsing ‘/etc/asterisk/extconfig.conf’: == Found
== Binding queues.conf to odbc/asterisk/ast_config
== Binding musiconhold.conf to odbc/asterisk/ast_config

But when i type module reload i get the following:

CLI> module reload
– Reloading module ‘res_musiconhold.so’ (Music On Hold Resource)
[Oct 15 11:15:51] WARNING[2788]: config.c:2025 find_engine: Realtime mapping for ‘musiconhold.conf’ found to engine ‘odbc’, but the engine is not available

If i search for res_musiconhold.so i find it in /usr/lib…:

find / -name res_musiconhold.so
/usr/lib/asterisk/modules/res_musiconhold.so\

Any idea what i forgot?