[sr-dev] [kamailio/kamailio] Unable to turn on TLS (#770)

Fyodor notifications at github.com
Tue Sep 6 22:09:24 CEST 2016


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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160906/b312cae6/attachment-0001.html>


More information about the sr-dev mailing list