[sr-dev] git:master: pv(k): removed $rc and $retcode (they are now in core)
Andrei Pelinescu-Onciul
andrei at iptel.org
Thu Oct 8 00:13:02 CEST 2009
Module: sip-router
Branch: master
Commit: e0d9b790d1971995823020777525cda63638973c
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e0d9b790d1971995823020777525cda63638973c
Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date: Thu Oct 8 00:03:25 2009 +0200
pv(k): removed $rc and $retcode (they are now in core)
---
modules_k/pv/pv.c | 6 +++---
modules_k/pv/pv_core.c | 3 ++-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/modules_k/pv/pv.c b/modules_k/pv/pv.c
index b284bbd..90fb460 100644
--- a/modules_k/pv/pv.c
+++ b/modules_k/pv/pv.c
@@ -252,12 +252,12 @@ static pv_export_t mod_pvs[] = {
{{"rb", (sizeof("rb")-1)}, /* */
PVT_MSG_BODY, pv_get_msg_body, 0,
0, 0, 0, 0},
- {{"rc", (sizeof("rc")-1)}, /* */
+ /* {{"rc", (sizeof("rc")-1)},
PVT_OTHER, pv_get_return_code, 0,
0, 0, 0, 0},
- {{"retcode", (sizeof("retcode")-1)}, /* */
+ {{"retcode", (sizeof("retcode")-1)},
PVT_OTHER, pv_get_return_code, 0,
- 0, 0, 0, 0},
+ 0, 0, 0, 0}, */
{{"rd", (sizeof("rd")-1)}, /* */
PVT_RURI_DOMAIN, pv_get_ruri_attr, pv_set_ruri_host,
0, 0, pv_init_iname, 2},
diff --git a/modules_k/pv/pv_core.c b/modules_k/pv/pv_core.c
index f8e527e..71186dd 100644
--- a/modules_k/pv/pv_core.c
+++ b/modules_k/pv/pv_core.c
@@ -78,12 +78,13 @@ int pv_get_5060(struct sip_msg *msg, pv_param_t *param, pv_value_t *res)
return pv_get_strintval(msg, param, res, &str_5060, 5060);
}
-extern int _last_returned_code;
+/*extern int _last_returned_code;
int pv_get_return_code(struct sip_msg *msg, pv_param_t *param,
pv_value_t *res)
{
return pv_get_sintval(msg, param, res, _last_returned_code);
}
+*/
int pv_get_pid(struct sip_msg *msg, pv_param_t *param,
pv_value_t *res)
More information about the sr-dev
mailing list