os: Linux mydomain.com 4.4.0-36-generic #55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
installation method:
`apt-get install kamailio kamailio-mysql-modules kamailio-tls-modules`
MySQL working excellent.
But when i try to add: `#!define WITH_TLS` to `/etc/kamailio/kamailio.cfg` i always get error:
```
Sep 06 23:06:28 mydomain.com kamailio[32437]: ERROR: <core> [sr_module.c:602]: load_module(): /usr/lib/x86_64-linux-gnu/kamailio/modules/tls.so: mod_register failed
Sep 06 23:06:28 mydomain.com kamailio[32437]: : <core> [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 279, column 12-19: failed to l
Sep 06 23:06:28 mydomain.com kamailio[32437]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <tls> found
Sep 06 23:06:28 mydomain.com kamailio[32437]: : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 438, column 50: Can't set modu
Sep 06 23:06:28 mydomain.com kamailio[32437]: ERROR: bad config file (2 errors)
Sep 06 23:06:28 mydomain.com kamailio[32437]: loading modules under config path: /usr/lib/x86_64-linux-gnu/kamailio/modules/
Sep 06 23:06:28 mydomain.com systemd[1]: kamailio.service: Control process exited, code=exited status=255
Sep 06 23:06:28 mydomain.com systemd[1]: Failed to start Kamailio (OpenSER) - the Open Source SIP Server.
Sep 06 23:06:28 mydomain.com systemd[1]: kamailio.service: Unit entered failed state.
Sep 06 23:06:28 mydomain.com systemd[1]: kamailio.service: Failed with result 'exit-code'.
```
in my kamailio.cfg enable_tls is set to yes
```
#!ifdef WITH_TLS
enable_tls=yes
```
line 279:
```
#!ifdef WITH_TLS
loadmodule "tls.so"
#!endif
```
and line 438:
```
#!ifdef WITH_TLS
# ----- tls params -----
modparam("tls", "config", "/etc/kamailio/tls.cfg")
#!endif
```
```
root@mydomain:/usr/lib/x86_64-linux-gnu/kamailio/modules# ll /usr/lib/x86_64-linux-gnu/kamailio/modules/tls.so
-rw-r--r-- 1 root root 433872 Apr 5 16:39 /usr/lib/x86_64-linux-gnu/kamailio/modules/tls.so
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/770
Module: kamailio
Branch: master
Commit: 5ba1360cd2c783e2c19e4b1a94c952ec4d856bdd
URL: https://github.com/kamailio/kamailio/commit/5ba1360cd2c783e2c19e4b1a94c952e…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2016-09-16T10:01:22+02:00
modules: readme files regenerated - http_async_client ...
---
Modified: modules/http_async_client/README
---
Diff: https://github.com/kamailio/kamailio/commit/5ba1360cd2c783e2c19e4b1a94c952e…
Patch: https://github.com/kamailio/kamailio/commit/5ba1360cd2c783e2c19e4b1a94c952e…
---
diff --git a/modules/http_async_client/README b/modules/http_async_client/README
index b145301..28aef44 100644
--- a/modules/http_async_client/README
+++ b/modules/http_async_client/README
@@ -48,7 +48,7 @@ Federico Cabiddu
4. Functions
- 4.1. http_async_query(url, [post_data], route_name)
+ 4.1. http_async_query(url, route_name)
4.2. http_async_suspend(suspend)
4.3. tls_verify_host(verify)
4.4. tls_verify_peer(verify)
@@ -119,7 +119,7 @@ Chapter 1. Admin Guide
4. Functions
- 4.1. http_async_query(url, [post_data], route_name)
+ 4.1. http_async_query(url, route_name)
4.2. http_async_suspend(suspend)
4.3. tls_verify_host(verify)
4.4. tls_verify_peer(verify)
@@ -321,7 +321,7 @@ modparam("http_async_client", "tls_ca_path", "/etc/kamailio/ssl/ca/")
4. Functions
- 4.1. http_async_query(url, [post_data], route_name)
+ 4.1. http_async_query(url, route_name)
4.2. http_async_suspend(suspend)
4.3. tls_verify_host(verify)
4.4. tls_verify_peer(verify)
@@ -332,18 +332,11 @@ modparam("http_async_client", "tls_ca_path", "/etc/kamailio/ssl/ca/")
4.9. http_set_tls_client_key(path)
4.10. http_set_tls_ca_path(path)
-4.1. http_async_query(url, [post_data], route_name)
+4.1. http_async_query(url, route_name)
Sends HTTP(S) request asyncronously to the URL given in “url”
parameter, which is a string that may contain pseudo variables.
- Unless a specific HTTP method was specified using
- http_async_set_method(), it defaults to a GET request, or to a POST
- request if “post_data” is provided as second argument.
-
- Parameter “post_data”, optional, which is sent as the body of the
- request, may also contain pseudo variables.
-
Parameter “route_name” defines the route to be executed upon reception
of HTTP reply, on error or on timeout. If a transaction exists before
calling http_async_query(), it will be paused and resumed in this
@@ -567,9 +560,10 @@ xlog("L_INFO", "received reply for query $http_query_id\n");
key can be one of:
* all: if set to $null, resets all the parameters to their default
value (the ones defined in modparam)
- * hdr: sets/modifies/remove a HTTP header (see http_append_header()).
- N.B.: setting this variable multiple times will add several headers
- to the query.
+ * hdr: sets/modifies/removes a HTTP header (see
+ http_append_header()). N.B.: setting this variable multiple times
+ will add several headers to the query.
+ * body: sets/modifies/removes the request body
* method: sets the HTTP method (see http_set_method())
* timeout: sets the HTTP timeout (see http_set_timeout())
* tls_client_cert: sets the client certificate to use (see