Module: sip-router Branch: master Commit: 146264f95b4e6523409ab4cf6db8785b44b33c91 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=146264f9...
Author: Henning Westerholt henning.westerholt@1und1.de Committer: Henning Westerholt henning.westerholt@1und1.de Date: Fri Jul 3 14:34:41 2009 +0200
core: add openser database URL for compatibility, used with OPENSER_MOD_INTERFACE
---
config.h | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/config.h b/config.h index a7ee638..0b402c8 100644 --- a/config.h +++ b/config.h @@ -197,11 +197,17 @@ /* maximum path length */ #define PATH_MAX_GUESS 1024
-#define DEFAULT_DB_URL "mysql://ser:heslo@localhost/ser" -#define DEFAULT_DB_URL_LEN (sizeof(DEFAULT_DB_URL) - 1) - -#define DEFAULT_RODB_URL "mysql://serro:47serro11@localhost/ser" -#define DEFAULT_RODB_URL_LEN (sizeof(DEFAULT_RODB_URL) - 1) +#ifdef OPENSER_MOD_INTERFACE + #define DEFAULT_DB_URL "mysql://openser:openserrw@localhost/openser" + #define DEFAULT_DB_URL_LEN (sizeof(DEFAULT_DB_URL) - 1) + #define DEFAULT_RODB_URL "mysql://openserro:openserro@localhost/openser" + #define DEFAULT_RODB_URL_LEN (sizeof(DEFAULT_RODB_URL) - 1) +#else + #define DEFAULT_DB_URL "mysql://ser:heslo@localhost/ser" + #define DEFAULT_DB_URL_LEN (sizeof(DEFAULT_DB_URL) - 1) + #define DEFAULT_RODB_URL "mysql://serro:47serro11@localhost/ser" + #define DEFAULT_RODB_URL_LEN (sizeof(DEFAULT_RODB_URL) - 1) +#endif
/* table holding versions of other ser tables */ #define VERSION_TABLE "version"