Module: kamailio
Branch: 4.4
Commit: cb26fbd82c9594bd670beb27cb3ee1b99603b6c6
URL:
https://github.com/kamailio/kamailio/commit/cb26fbd82c9594bd670beb27cb3ee1b…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2016-03-30T08:54:56+02:00
http_client Add error parsing for DNS issues with http_proxy
(cherry picked from commit 438f91b8b5a43516d8904f23be2fa9898fdc465c)
---
Modified: modules/http_client/functions.c
---
Diff:
https://github.com/kamailio/kamailio/commit/cb26fbd82c9594bd670beb27cb3ee1b…
Patch:
https://github.com/kamailio/kamailio/commit/cb26fbd82c9594bd670beb27cb3ee1b…
---
diff --git a/modules/http_client/functions.c b/modules/http_client/functions.c
index 3068176..7bd1564 100644
--- a/modules/http_client/functions.c
+++ b/modules/http_client/functions.c
@@ -219,6 +219,8 @@ static int curL_query_url(struct sip_msg* _m, const char* _url, str*
_dst, const
LM_WARN("failed to connect() to host\n");
} else if ( res == CURLE_COULDNT_RESOLVE_HOST ) {
LM_WARN("couldn't resolve host\n");
+ } else if ( res == CURLE_COULDNT_RESOLVE_PROXY ) {
+ LM_WARN("couldn't resolve http_proxy host\n");
} else {
LM_ERR("failed to perform curl (%d)\n", res);
}