[sr-dev] git:master: modules_k/domain: exported domain_attrs_table module var

admin at sip-router.org admin at sip-router.org
Tue May 15 10:57:47 CEST 2012


Module: sip-router
Branch: master
Commit: a2fd243f1ada873e722acca1a9aaba1348b85f9b
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a2fd243f1ada873e722acca1a9aaba1348b85f9b

Author: Juha Heinanen <jh at tutpro.com>
Committer: Juha Heinanen <jh at tutpro.com>
Date:   Tue May 15 11:56:22 2012 +0300

modules_k/domain:  exported domain_attrs_table module var

- Thanks to Charles Chance for reporting.

---

 modules_k/domain/domain_mod.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules_k/domain/domain_mod.c b/modules_k/domain/domain_mod.c
index 006d7ce..507f873 100644
--- a/modules_k/domain/domain_mod.c
+++ b/modules_k/domain/domain_mod.c
@@ -139,6 +139,7 @@ static cmd_export_t cmds[] = {
 static param_export_t params[] = {
 	{"db_url",         STR_PARAM, &db_url.s      },
 	{"domain_table",   STR_PARAM, &domain_table.s},
+	{"domain_attrs_table",   STR_PARAM, &domain_attrs_table.s},
 	{"did_col",        STR_PARAM, &did_col.s  },
 	{"domain_col",     STR_PARAM, &domain_col.s  },
 	{"name_col",       STR_PARAM, &name_col.s  },
@@ -200,6 +201,7 @@ static int mod_init(void)
 
     db_url.len = strlen(db_url.s);
     domain_table.len = strlen(domain_table.s);
+    domain_attrs_table.len = strlen(domain_attrs_table.s);
     did_col.len = strlen(did_col.s);
     domain_col.len = strlen(domain_col.s);
     name_col.len = strlen(name_col.s);
@@ -222,8 +224,7 @@ static int mod_init(void)
 	domain_db_close();
 	goto error;
     }
-    if (domain_db_ver(&domain_attrs_table,
-		      DOMAIN_ATTRS_TABLE_VERSION) < 0) {
+    if (domain_db_ver(&domain_attrs_table, DOMAIN_ATTRS_TABLE_VERSION) < 0) {
 	LM_ERR("error during check of domain_attrs table version\n");
 	domain_db_close();
 	goto error;




More information about the sr-dev mailing list