Redefine/override the DB function calls

Hi.

FreePBX makes extensive use of the DB function in extensions*.conf.

However, I am trying to use a MySQL Cluster instead of astdb (so that values stored in the database are consistent throughout the cluster).

Is it possible to override the standard DB calls in FreePBX with, for example, the MYSQL function?

So instead of patching extensions*.conf and replacing the DB calls with MYSQL calls, would it be possible to just “user-define” the DB function so that I can leave the extensions file intact but make the appropriate MYSQL function calls?

Thanks.

ok, so you can’t “redefine” the DB function. However, FreePBX could try to give the user the choice between using DB as usual or using func_odbc to store/retrieve values. An example is at http://www.asteriskpbx.com/func_odbc.