Module: kamailio
Branch: 4.4
Commit: 9589a0168c632e8d934ea45889352864e82d19d3
URL:
https://github.com/kamailio/kamailio/commit/9589a0168c632e8d934ea4588935286…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2016-03-30T15:02:07+02:00
http_client.c Remove code that doesn't even try to work
---
Modified: modules/http_client/http_client.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9589a0168c632e8d934ea4588935286…
Patch:
https://github.com/kamailio/kamailio/commit/9589a0168c632e8d934ea4588935286…
---
diff --git a/modules/http_client/http_client.c b/modules/http_client/http_client.c
index 86d6fad..a416a3d 100644
--- a/modules/http_client/http_client.c
+++ b/modules/http_client/http_client.c
@@ -167,9 +167,6 @@ static pv_export_t mod_pvs[] = {
{{"curlerror", (sizeof("curlerror")-1)}, /* Curl error codes */
PVT_OTHER, pv_get_curlerror, 0,
pv_parse_curlerror, 0, 0, 0},
- {{"curlredirect", (sizeof("redirect")-1)}, /* Curl error codes
*/
- PVT_OTHER, pv_get_curlredirect, 0,
- pv_parse_curlredirect, 0, 0, 0},
{{0, 0}, 0, 0, 0, 0, 0, 0, 0}
};
@@ -716,31 +713,3 @@ static int pv_get_curlerror(struct sip_msg *msg, pv_param_t *param,
pv_value_t *
return pv_get_strval(msg, param, res, &curlerr);
}
-/*!
- * Parse arguments to pv $curlredirect
- */
-static int pv_parse_curlredirect(pv_spec_p sp, str *in)
-{
- if(sp==NULL || in==NULL || in->len<=0) {
- return -1;
- }
-
- // DO SOMETHING HERE
- return 0;
-}
-
-/*
- * PV - return curl redirect URL for httpcon
- * $curlredirect("httpcon");
- */
-static int pv_get_curlredirect(struct sip_msg *msg, pv_param_t *param, pv_value_t *res)
-{
- str redirecturl;
-
- if(param==NULL) {
- return -1;
- }
-
- // DO SOMETHING HERE
- return pv_get_strval(msg, param, res, &redirecturl);
-}