Asterisk + SIP Account + MySQL


I have Asterisk working and sending CDR to my MySQL database.
Now I would like that Asterisk reads directly the SIP accounts on mysql database. On this post it is said that we have to install an add-on but I can’t find any documentation where I can say to Asterisk to read the SIP accounts directly from mysql. In know that there is a script called to retrieve from mysql the SIP accounts but this is an “off-line” method. I would like that Asterisk reads direct data records on mysql thus to disable/enable an user it was a question of delete the record on the database.
There is any way to that? If yes what flags/swtichs in config files should I change?

Best regards

here you can see how it’s done

Thanks a lot.
I’ve now working my SIP clients from MySQL