Twould help if we actually documented how the new features in res_odbc actually work. (Oops)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2006-09-21 23:24:41 +00:00
parent 928c5f7bbc
commit 5ac0ca6af1
2 changed files with 13 additions and 2 deletions

View File

@@ -235,7 +235,8 @@ static int load_odbc_config(void)
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) {