[Asterisk-Dev] Realtime Config and DB Driver Groups

Matthew Boehm mboehm at cytelcom.com
Fri Oct 8 15:57:09 MST 2004


(take 2..the power went out mid-email..grr)

Since I haven't seen much discussion about realtime config and haven't seen
much documentation, I felt compelled to share some.

In order to make your app/module realtime enabled, you first add custom
family name, database driver to use, database name and optionally the table
name in the following form to extconfig.conf:

 <family name> => <db driver>,<db name>[,table name]

A driver is registered with 3 functions:

  static_func : This function is used to retreive information from the
database once when the module/app is loaded and/or reloaded. The information
retreived is returned as an ast_config structure and remains in the
app/module's memory space thru each execution of the code.

  realtime_func: This function retreives information from the database and
returns it as a linked ast_variable list. This list should be destroyed by
your module/app code once finished with it.

  update_func: This function is used to update information in the database.

The only "driver" that I can see is odbc (via res_config_odbc).  I do not
see drivers for MySQL, PostgreSQL, SQLite, etc...in the current CVS
repositories.

Are there groups of developers currently working on these drivers? If so,
could someone post a contact list? Since I didn't see it, I personally want
to start writing the mysql driver (res_config_mysql) right now, but don't
want to spend the weekend writing one only to find out there already is an
official one somewhere that I couldn't access.

It seems this is the new way to config asterisk so if you have any more
info, please pass it along.

Thanks,
Matthew




More information about the asterisk-dev mailing list