Module: sip-router
Branch: master
Commit: 667abaf034fd79b10e7c116e5afcfaf50b834145
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=667abaf…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Sun Dec 11 09:26:45 2011 +0200
modules_k/siputils: removed unused sip_msg* param from is_uri_user_e164()
---
modules/app_lua/app_lua_exp.c | 2 +-
modules_k/siputils/checks.c | 4 ++--
modules_k/siputils/checks.h | 2 +-
modules_k/siputils/siputils.h | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/app_lua/app_lua_exp.c b/modules/app_lua/app_lua_exp.c
index 3b15fb7..de676a5 100644
--- a/modules/app_lua/app_lua_exp.c
+++ b/modules/app_lua/app_lua_exp.c
@@ -1873,7 +1873,7 @@ static int lua_sr_siputils_is_uri_user_e164(lua_State *L)
param[0].s = (char *) lua_tostring(L, -1);
param[0].len = strlen(param[0].s);
- ret = _lua_siputilsb.is_uri_user_e164(env_L->msg, ¶m[0]);
+ ret = _lua_siputilsb.is_uri_user_e164(¶m[0]);
if (ret < 0)
return app_lua_return_false(L);
diff --git a/modules_k/siputils/checks.c b/modules_k/siputils/checks.c
index eb04e50..7bcd2ed 100644
--- a/modules_k/siputils/checks.c
+++ b/modules_k/siputils/checks.c
@@ -480,7 +480,7 @@ int w_is_uri_user_e164(struct sip_msg* _m, char* _sp, char* _s2)
LM_DBG("missing uri\n");
return -1;
}
- return is_uri_user_e164(_m, &pv_val.rs);
+ return is_uri_user_e164(&pv_val.rs);
} else {
LM_ERR("pseudo variable value is not string\n");
return -1;
@@ -492,7 +492,7 @@ int w_is_uri_user_e164(struct sip_msg* _m, char* _sp, char* _s2)
}
-int is_uri_user_e164(struct sip_msg *msg, str *uri)
+int is_uri_user_e164(str *uri)
{
char *chr;
str user;
diff --git a/modules_k/siputils/checks.h b/modules_k/siputils/checks.h
index 07a71a2..17dce1c 100644
--- a/modules_k/siputils/checks.h
+++ b/modules_k/siputils/checks.h
@@ -85,7 +85,7 @@ int tel2sip(struct sip_msg* _msg, char* _uri, char* _hostpart, char*
_res);
* Check if user part of URI in pseudo variable is an e164 number
*/
int w_is_uri_user_e164(struct sip_msg* _m, char* _sp, char* _s2);
-int is_uri_user_e164(struct sip_msg* msg, str *uri);
+int is_uri_user_e164(str *uri);
/*
* Check if pseudo variable argument value is an e164 number
diff --git a/modules_k/siputils/siputils.h b/modules_k/siputils/siputils.h
index a4fc655..7ae4aff 100644
--- a/modules_k/siputils/siputils.h
+++ b/modules_k/siputils/siputils.h
@@ -25,7 +25,7 @@
#define _SIPUTILS_H_
typedef int (*siputils_has_totag_t)(struct sip_msg*, char*, char*);
-typedef int (*siputils_is_uri_user_e164_t)(struct sip_msg*, str*);
+typedef int (*siputils_is_uri_user_e164_t)(str*);
/*! Siputils module API */
typedef struct siputils_api {