general improvements

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5078 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2007-05-03 16:28:23 +00:00
parent 9d5d251987
commit 1be5b1ff45
8 changed files with 599 additions and 59 deletions
+6 -3
View File
@@ -1565,11 +1565,14 @@ int sofia_glue_init_sql(sofia_profile_t *profile)
#endif
#ifdef SWITCH_HAVE_ODBC
return profile->master_odbc ? 1 : 0;
#else
return 1;
if (profile->odbc_dsn) {
return profile->master_odbc ? 1 : 0;
}
#endif
return profile->master_db ? 1: 0;
}
void sofia_glue_sql_close(sofia_profile_t *profile)