login | register
Sat 17 of May, 2008 [07:19 UTC]

voip-info.org

Search with Google
Search this site with Google. Results may not include recent changes.
 
Google Ads
Shoutbox
  • Juan Ortega, Thu 15 of May, 2008 [10:33 UTC]: Hi everybody, I'm Juan, an ITCom student, and I need to know what basic elements I need to create a VoIP network. Can anybody helpme, please?,Thank you very much
  • gineta, Wed 14 of May, 2008 [03:58 UTC]: any here not fine the configuration of firewall juniper -screem for VOIP asterisk????
  • Anoop Prabhakaran, Tue 13 of May, 2008 [12:16 UTC]: I am developing Asterisk IVR, Whenever i make a internation call to the IVR system, the DTMF is not getting detected properly, this happens only for the first time, second call onwards system works fine. why this is happening
  • joe, Mon 12 of May, 2008 [04:27 UTC]: Is there an opensource browser based softphone, or a system like Busta where everything is not manages through their website?
  • Nick Barnes, Fri 09 of May, 2008 [11:36 UTC]: Christopher - yesterday I tried an Asterisk install on a CentOS 5.1 box with stock GUI and it all worked fine. Sorry I can't help.
  • aero, Fri 09 of May, 2008 [08:20 UTC]: can someone help me out on this, i tried to play some sound files on my asterisk box and this is the error message i got. WARNING[4429]: format_wav.c:169 check_header: Unexpected freqency 22050 May 8 11:17:39 WARNING[4433]: codec_gsm.c:194 gsmtolin_fra
  • Christopher Faust, Thu 08 of May, 2008 [14:15 UTC]: I beleive that I may have to change something in the xserver configuration. Please advise
  • Christopher Faust, Thu 08 of May, 2008 [14:14 UTC]: Everything was perfect. In the bios I have increased the memory allocated Still receive input not supported on my display.
  • Christopher Faust, Thu 08 of May, 2008 [14:13 UTC]: This would not be my main box. I am doing some testing to see if I can install zaptel and asterisk 1.4 on a full centos 5.1 box with development software Its bizzare, because before I went through the asterisk and zaptel installation everything was perfe
  • Nick Barnes, Thu 08 of May, 2008 [13:44 UTC]: Christopher - I can't see any way in which an Asterisk installation would muck your GUI, but remember that it is advised not to use a GUI on an Asterisk box anyway.
Server Stats
  • Execution time: 0.61s
  • Memory usage: 2.20MB
  • Database queries: 29
  • GZIP: Disabled
  • Server load: 0.67

Asterisk cmd DBQuery

Asterisk application DBQuery

With DBQuery you can access your Mysql Database and query it for the needed data, or update data in your Mysql Database. It is also possible to register DBQuery as cdr backend - so you can define your own sql statement for writing cdr data. DBQuery does use the MysqlPool Resource to get a connection handle to a MySQL Database, so you achive load balancing and a fail save environment with it.

Compile it:

For compiling it you do need the mysql client libraries and header files. Asterisk and its header files are also required. If you do not have installed asterisk in the default directories, then you have to edit the Makefile and make changes to the following variables.
ASTERISKINCDIR

Set ASTERISKINCDIR variable to the directory containing the sources of Asterisk PBX.

ASTERISKMODDIR
Set ASTERISKMODDIR variable to the directory where ASTERISK's modules reside. The modules will be installed in this directory.

ASTERISKETCDIR
Set ASTERISKETCDIR variable to the directory where ASTERISK's configuration files reside. The config files will be installed in this directory.


Configure it:

Example config file can be found in the doc subdirectory.

There are two categories, the category queries and the category cdr-backend.

In queries you have to configure the queries which should be useable by DBQuery.

callforwarding=SELECT destination FROM callforwarding WHERE extension='%s' AND class='%s'

In cdr-backend you can define the sql query which should get used for writing the cdr entry, the server which should get used preferred and with the option enabled you can enable or disable the cdr-backend.



Extensions example:

Example usage for DBQuery:


exten => 12,1,DBQuery(callforwarding,(${EXTEN}|unconditional),(CF_DESTINATION))

This statement will execute the sql query defined in the dbquery.conf file for the key callforwarding. It will substitute each %s with an argument provided. So the statement which will get executed will look like:
SELECT destination FROM callforwarding WHERE extension='12' AND class='unconditional'

The returned value will get placed in the channel variable ${CF_DESTINATION}



For more information just take a look at http://www.yosd.at/


Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ

Created by wuwu, Last modification by Gil Richard on Fri 23 of Nov, 2007 [15:09 UTC]

Comments Filter

dbquery problem

by Dejan Dinic on Friday 06 of July, 2007 [09:56:41 UTC]
Debian 4.0, Asterisk 1.2.x, Mysql 5.x

Test*CLI> load app_dbquery.so
Unable to load module app_dbquery
Jul 2 17:32:58 WARNING5831: loader.c:325 __load_resource: /usr/lib/asterisk/modules/app_dbquery.so: undefined symbol: get_sql_connection

Does anybody know what the problem could be ?

Problem solved.
before load app_dbquery.so we need to load res_mysqlpool.so





dbquery problem

by Dejan Dinic on Friday 06 of July, 2007 [09:55:41 UTC]




dbquery problem

by Dejan Dinic on Friday 06 of July, 2007 [09:55:24 UTC]



Please update this page with new information, just login and click on the "Edit" or "Add Comment" button above. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

Sponsored by:

Terms of Service Privacy Policy
© 2003-2008 VOIP-Info.org LLC

Powered by bitweaver