Browse Source

modules_k/siputils: removed unused sip_msg* param from is_uri_user_e164()

Juha Heinanen 14 years ago
parent
commit
667abaf034

+ 1 - 1
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].s = (char *) lua_tostring(L, -1);
 	param[0].len = strlen(param[0].s);
 	param[0].len = strlen(param[0].s);
 	
 	
-	ret = _lua_siputilsb.is_uri_user_e164(env_L->msg, &param[0]);
+	ret = _lua_siputilsb.is_uri_user_e164(&param[0]);
 	if (ret < 0)
 	if (ret < 0)
 		return app_lua_return_false(L);
 		return app_lua_return_false(L);
 
 

+ 2 - 2
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");
 		LM_DBG("missing uri\n");
 		return -1;
 		return -1;
 	    }
 	    }
-	    return is_uri_user_e164(_m, &pv_val.rs);
+	    return is_uri_user_e164(&pv_val.rs);
 	} else {
 	} else {
 	    LM_ERR("pseudo variable value is not string\n");
 	    LM_ERR("pseudo variable value is not string\n");
 	    return -1;
 	    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;
     char *chr;
     str user;
     str user;

+ 1 - 1
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
  * 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 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
  * Check if pseudo variable argument value is an e164 number

+ 1 - 1
modules_k/siputils/siputils.h

@@ -25,7 +25,7 @@
 #define _SIPUTILS_H_
 #define _SIPUTILS_H_
 
 
 typedef int (*siputils_has_totag_t)(struct sip_msg*, char*, char*);
 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 */
 /*! Siputils module API */
 typedef struct siputils_api {
 typedef struct siputils_api {