[sr-dev] git:master: modules_k/osp, modules_k/siputils: The bind_siputils function takes 1 parameter, but the bind command in here (and as used in osp) was specified as taking 0 parameters.

Peter Dunkley peter.dunkley at crocodile-rcs.com
Fri Oct 14 15:08:24 CEST 2011


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

Author: pd <peter.dunkley at crocodile-rcs.com>
Committer: pd <peter.dunkley at crocodile-rcs.com>
Date:   Fri Oct 14 14:06:56 2011 +0100

modules_k/osp, modules_k/siputils: The bind_siputils function takes 1 parameter, but the bind command in here (and as used in osp) was specified as taking 0 parameters.

---

 modules_k/osp/osp_mod.c       |    2 +-
 modules_k/siputils/siputils.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules_k/osp/osp_mod.c b/modules_k/osp/osp_mod.c
index 8dde3bd..5eb8502 100644
--- a/modules_k/osp/osp_mod.c
+++ b/modules_k/osp/osp_mod.c
@@ -182,7 +182,7 @@ static int ospInitMod(void)
     }
 
     /* Load the AUTH API */
-    bind_su = (bind_siputils_t)find_export("bind_siputils", 0, 0);
+    bind_su = (bind_siputils_t)find_export("bind_siputils", 1, 0);
     if ((bind_su == NULL) || (bind_su(&osp_siputils) != 0)) {
         LM_WARN("failed to load the SIPUTILS API. Check if you load the auth module.\n");
         LM_WARN("rpid_avp & rpid_avp_type is required for calling number translation\n");
diff --git a/modules_k/siputils/siputils.c b/modules_k/siputils/siputils.c
index e50fa3d..9970f45 100644
--- a/modules_k/siputils/siputils.c
+++ b/modules_k/siputils/siputils.c
@@ -154,7 +154,7 @@ static cmd_export_t cmds[]={
 		    fixup_free_set_uri,	ANY_ROUTE},
 	{"set_uri_host", (cmd_function)set_uri_host,             2, fixup_set_uri,
 		    fixup_free_set_uri,	ANY_ROUTE},
-	{"bind_siputils",       (cmd_function)bind_siputils,           0, 0,
+	{"bind_siputils",       (cmd_function)bind_siputils,           1, 0,
 			0, 0},
 	{"is_request",          (cmd_function)w_is_request,            0, 0,
 			0, ANY_ROUTE},




More information about the sr-dev mailing list