[Asterisk-Dev] ast_data code first public release ready for testing
Rob Gagnon
rob at networkip.net
Tue Jun 1 15:16:29 MST 2004
Some people are already aware of the existence of this project prior to its
introduction today, but I wanted to advertise a little more so we can get
more input and some testing done on it before CVS inclusion.
Here's a summary of the text on
http://bugs.digium.com/bug_view_page.php?bug_id=0001765:
The code removes all SQL code from app_voicemail.c, chan_sip.c, chan_iax2.c,
and adds the ability to do extension lookups from an external module to
pbx.c.
Currently MySQL, PostGreSQL, and ODBC database modules are included in the
tarball. The .conf file should be helpful as to how to configure things.
Database connection pooling is in each data_xxx.c module to help avoid
locking contentions with single-threaded database engines.
Modules for RADIUS, LDAP, etc. could be written by following the example
data_xxx.c modules.
When installed, if you delete the /etc/asterisk/data.conf file, Asterisk
will create the appropriate file for you based on information in your
sip.conf, voicemail.conf, and iax.conf files if it needs to.
There are CLI commands as well:
show data mysql status
show data odbc status
show data pgsql status
show data handlers
data debug
data no debug
All .patch.txt files inside the tarball were up-to-date with CVS as of the
time of this post. If you want the most recent version, you can obtain it
from http://svn.asteriskdocs.org/res_data/
Happy testing!. Thanks for the contributions of code and ideas from ssokol,
folsson, exomorph, citats, bkw, mikes2277, and others. Also to exomorph for
the space on his SVN server for code placement.
More information about the asterisk-dev
mailing list