Module: kamailio
Branch: master
Commit: 19708f20373f70ad2915caed7fa8d8c98913fb5b
URL: 
https://github.com/kamailio/kamailio/commit/19708f20373f70ad2915caed7fa8d8c98913fb5b

Author: Olle E. Johansson <[email protected]>
Committer: Olle E. Johansson <[email protected]>
Date: 2016-04-02T08:28:22+02:00

http_client Add some debugging

---

Modified: modules/http_client/functions.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/19708f20373f70ad2915caed7fa8d8c98913fb5b.diff
Patch: 
https://github.com/kamailio/kamailio/commit/19708f20373f70ad2915caed7fa8d8c98913fb5b.patch

---

diff --git a/modules/http_client/functions.c b/modules/http_client/functions.c
index 8a60e88..3757c98 100644
--- a/modules/http_client/functions.c
+++ b/modules/http_client/functions.c
@@ -211,6 +211,9 @@ static int curL_query_url(struct sip_msg* _m, const char* 
_url, str* _dst, const
     res |= curl_easy_setopt(curl, CURLOPT_NOSIGNAL, (long) 1);
     res |= curl_easy_setopt(curl, CURLOPT_TIMEOUT, (long) params->timeout);
     res |= curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, (long) 
params->http_follow_redirect);
+    if (params->http_follow_redirect) {
+       LM_DBG("****** ##### Following redirects for this request! \n");
+    }
 
 
     res |= curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_function);


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to