[asterisk-commits] tilghman: branch 1.4 r43464 - in /branches/1.4:
	configs/ res/
    asterisk-commits at lists.digium.com 
    asterisk-commits at lists.digium.com
       
    Thu Sep 21 16:24:41 MST 2006
    
    
  
Author: tilghman
Date: Thu Sep 21 18:24:41 2006
New Revision: 43464
URL: http://svn.digium.com/view/asterisk?rev=43464&view=rev
Log:
Twould help if we actually documented how the new features in res_odbc actually work. (Oops)
Modified:
    branches/1.4/configs/res_odbc.conf.sample
    branches/1.4/res/res_odbc.c
Modified: branches/1.4/configs/res_odbc.conf.sample
URL: http://svn.digium.com/view/asterisk/branches/1.4/configs/res_odbc.conf.sample?rev=43464&r1=43463&r2=43464&view=diff
==============================================================================
--- branches/1.4/configs/res_odbc.conf.sample (original)
+++ branches/1.4/configs/res_odbc.conf.sample Thu Sep 21 18:24:41 2006
@@ -24,8 +24,18 @@
 password => mypass
 pre-connect => yes
 
+; Certain servers, such as MS SQL Server and Sybase use the TDS protocol, which
+; limits the number of active queries per connection to 1.  By setting up pools
+; of connections, Asterisk can be made to work with these servers.
+[sqlserver]
+enabled => no
+dsn => mickeysoft
+pooling => yes
+limit => 5
+username => oscar
+password => thegrouch
+pre-connect => yes
 
 
 
 
-
Modified: branches/1.4/res/res_odbc.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_odbc.c?rev=43464&r1=43463&r2=43464&view=diff
==============================================================================
--- branches/1.4/res/res_odbc.c (original)
+++ branches/1.4/res/res_odbc.c Thu Sep 21 18:24:41 2006
@@ -235,7 +235,8 @@
 			limit = 0;
 			for (v = ast_variable_browse(config, cat); v; v = v->next) {
 				if (!strcasecmp(v->name, "pooling")) {
-					pooling = 1;
+					if (ast_true(v->value))
+						pooling = 1;
 				} else if (!strcasecmp(v->name, "limit")) {
 					sscanf(v->value, "%d", &limit);
 					if (ast_true(v->value) && !limit) {
    
    
More information about the asterisk-commits
mailing list