pv(k): removed $rc and $retcode (they are now in core)
authorAndrei Pelinescu-Onciul <andrei@iptel.org>
Wed, 7 Oct 2009 22:03:25 +0000 (00:03 +0200)
committerAndrei Pelinescu-Onciul <andrei@iptel.org>
Wed, 7 Oct 2009 22:18:12 +0000 (00:18 +0200)
modules_k/pv/pv.c
modules_k/pv/pv_core.c

index b284bbd..90fb460 100644 (file)
@@ -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},
index f8e527e..71186dd 100644 (file)
@@ -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)