Erreur Asterisk

I develop a module for asterisk, and this module use Mysql Data bases, But when i execute this module (in dial plan : exten=> _9XX,1,My_model() )
I have this erreur :

[Jul 21 18:23:37] WARNING[7515]: config.c:1316 find_engine: Realtime mapping for ‘sippeers’ found to engine ‘mysql’, but the engine is not available

Please some one have an idea.
Think you.

[quote=“amigobs”]I develop a module for asterisk, and this module use Mysql Data bases, But when i execute this module (in dial plan : exten=> _9XX,1,My_model() )
I have this erreur :

[Jul 21 18:23:37] WARNING[7515]: config.c:1316 find_engine: Realtime mapping for ‘sippeers’ found to engine ‘mysql’, but the engine is not available

Please some one have an idea.
Think you.[/quote]

I resolve my problem, that it is a problem of Mutex in Mysql connection ( ast_mutex_lock(&mysql_mutex);
ast_mutex_unlock(&mysql_mutex); )
Thx