Module: kamailio
Branch: master
Commit: c391c09f92904b466b426da49e2268024792bde4
URL: https://github.com/kamailio/kamailio/commit/c391c09f92904b466b426da49e22680…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2016-03-29T09:29:55+02:00
http_client TODO update
---
Modified: modules/http_client/TODO.txt
---
Diff: https://github.com/kamailio/kamailio/commit/c391c09f92904b466b426da49e22680…
Patch: https://github.com/kamailio/kamailio/commit/c391c09f92904b466b426da49e22680…
---
diff --git a/modules/http_client/TODO.txt b/modules/http_client/TODO.txt
index 70ba567..34a368c 100644
--- a/modules/http_client/TODO.txt
+++ b/modules/http_client/TODO.txt
@@ -45,3 +45,6 @@ The http_client module - todo
$curl == URL
$curlres == result
+
+- Option to try connections at module load with CURLOPT_CONNECT_ONLY
+ just to make sure URLs resolve correctly in DNS and ports are open
Module: kamailio
Branch: master
Commit: b8ed251f8f4716393ba07d910d162b6a5bfa2194
URL: https://github.com/kamailio/kamailio/commit/b8ed251f8f4716393ba07d910d162b6…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2016-03-28T21:08:05+02:00
http_client Document limitation to http and https protocols
---
Modified: modules/http_client/README
Modified: modules/http_client/doc/http_client_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/b8ed251f8f4716393ba07d910d162b6…
Patch: https://github.com/kamailio/kamailio/commit/b8ed251f8f4716393ba07d910d162b6…
---
diff --git a/modules/http_client/README b/modules/http_client/README
index 91fb2d3..9384f35 100644
--- a/modules/http_client/README
+++ b/modules/http_client/README
@@ -177,6 +177,8 @@ Chapter 1. Admin Guide
and get access to parts of the reply. This function has been ported
from the utils module and now use the same libcurl functions.
+ The module is limited to using HTTP and HTTPS protocols.
+
2. Dependencies
2.1. Kamailio Modules
diff --git a/modules/http_client/doc/http_client_admin.xml b/modules/http_client/doc/http_client_admin.xml
index 09cb1e6..924830f 100644
--- a/modules/http_client/doc/http_client_admin.xml
+++ b/modules/http_client/doc/http_client_admin.xml
@@ -43,6 +43,9 @@
been ported from the utils module and now use the same libcurl
functions.
</para>
+ <para>
+ The module is limited to using HTTP and HTTPS protocols.
+ </para>
</section>
<section>
<title>Dependencies</title>
Module: kamailio
Branch: master
Commit: 191cffa3bc0bbe1a23ae214cdf0ad76035614ba0
URL: https://github.com/kamailio/kamailio/commit/191cffa3bc0bbe1a23ae214cdf0ad76…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2016-03-28T20:48:50+02:00
http_client Update TODO - remove done items
---
Modified: modules/http_client/TODO.txt
---
Diff: https://github.com/kamailio/kamailio/commit/191cffa3bc0bbe1a23ae214cdf0ad76…
Patch: https://github.com/kamailio/kamailio/commit/191cffa3bc0bbe1a23ae214cdf0ad76…
---
diff --git a/modules/http_client/TODO.txt b/modules/http_client/TODO.txt
index a4fddc7..70ba567 100644
--- a/modules/http_client/TODO.txt
+++ b/modules/http_client/TODO.txt
@@ -2,21 +2,11 @@ The http_client module - todo
======================
- connection parameters
- timeout=x - DONE
read=line/all - Implemented in API, but not in parameter
tlsverify=on/off
failover=httpcon Other httpcon that can be used for failover in case of 5xx response or timeout
- httpredirect - DONE
- useragent - DONE
-- Make sure modparams work
- httpproxy - Not working with curl
- tls cert, key, ca - Not working with curl yet
- httpredirect - done
- timeout - done
- maxdatasize - done
-
- Add XAVP parameter setting before running curl_connect
- save fingerprint of cert for trust-on-first-use procedure
@@ -26,13 +16,11 @@ The http_client module - todo
- function in dialplan - httpcon_exists(object)
- pv $curlstatus(object) ??
- this is per process !!!
+ - can be used to fix the $curlredirect pseudovariable too
- Figure out a way to communicate back the content-type of the response. Another pvar arg?
- This is per process!
-- pv for curl error codes (result < 100)
- $curlerror(code) Result string - DONE
-
- rpc
curl.listcon list all connection objects with properties
-- Done, but not documented
@@ -57,8 +45,3 @@ The http_client module - todo
$curl == URL
$curlres == result
-- API for other modules - done by Hugh Waite
- - Needs documentation
-
-- Look into graceful failure when we can't resolve host. Right now we return -1 and fail
- without returning a failure code.
Hi!
Http_client is using the cfg_parser.c core parser to parse the config file. In some cases I would like to set an empty string. Let’s say that I’ve set a default http proxy in modparams and wants to reset it to no proxy in the config file - in this case I would like to write
httpproxy=
on a line in the config file.
In this case I get
0(45371) ERROR: <core> [cfg_parser.c:891]: cfg_parse_str(): http_client.cfg:35:0: Invalid string value '
', a string expected.
Is there a way to allow an empty string?
/O
Module: kamailio
Branch: master
Commit: 68547d50668032c1a43e81f2eabf4d2b709ff049
URL: https://github.com/kamailio/kamailio/commit/68547d50668032c1a43e81f2eabf4d2…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2016-03-28T20:42:37+02:00
http_client Add note about empty string in configuration file
---
Modified: modules/http_client/README
Modified: modules/http_client/doc/http_client_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/68547d50668032c1a43e81f2eabf4d2…
Patch: https://github.com/kamailio/kamailio/commit/68547d50668032c1a43e81f2eabf4d2…
---
diff --git a/modules/http_client/README b/modules/http_client/README
index 2387c25..91fb2d3 100644
--- a/modules/http_client/README
+++ b/modules/http_client/README
@@ -525,6 +525,10 @@ tstuff;timeout=12")
path and anything else a path relative to the directory of the current
Kamailio main config file.
+ To set a string value to null, in order to override default settings,
+ you can specify an value of "" - two quotation marks. In order to
+ disable a http proxy setting you can set the port to zero.
+
Example 1.16. Set config_file parameter
...
modparam("http_client", "config_file", "httpconnections.cfg)
diff --git a/modules/http_client/doc/http_client_admin.xml b/modules/http_client/doc/http_client_admin.xml
index 6e32845..09cb1e6 100644
--- a/modules/http_client/doc/http_client_admin.xml
+++ b/modules/http_client/doc/http_client_admin.xml
@@ -536,6 +536,11 @@ modparam("http_client", "httpcon", "apifour=>http://stockholm.example.com/api/ge
absolute path and anything else a path relative to the directory of
the current &kamailio; main config file.
</para>
+ <para>
+ To set a string value to null, in order to override default settings,
+ you can specify an value of "" - two quotation marks. In order to disable
+ a http proxy setting you can set the port to zero.
+ </para>
<example>
<title>Set <varname>config_file</varname> parameter</title>
<programlisting format="linespecific">