<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
if you start with debug=3, do you see the message:<br>
<br>
DEBUG: <core> [sr_module.c:959]: init_mod(): tls<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 13/11/15 12:17, Sebastian Damm
wrote:<br>
</div>
<blockquote
cite="mid:CABkWSFxGQvS6WFhJZhU1jey6jPALF50+cfTFNk-2nkV-ZiDtqQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>Hello,<br>
<br>
</div>
we just updated one kamailio server from 4.1.5 to 4.3.3,
and although the config file is correct and kamailio
starts up, it doesn't initialize TLS and says " tls
support enabled, but no tls engine available (forgot to
load the tls module?)"<br>
<br>
</div>
In the log I see:<br>
<br>
Old shutdown (last lines):<br>
Nov 13 11:44:38 lasola /usr/sbin/kamailio[15890]: DEBUG:
<core> [mem/shm_mem.c:235]: shm_mem_destroy():
destroying the shared memory lock<br>
Nov 13 11:44:41 lasola /usr/sbin/kamailio[14818]: ERROR:
<core> [tcp_read.c:271]: tcp_read_data(): error
reading: Connection reset by peer (104)<br>
Nov 13 11:44:41 lasola /usr/sbin/kamailio[14818]: ERROR:
<core> [tcp_read.c:1296]: tcp_read_req(): ERROR:
tcp_read_req: error reading<br>
<br>
New startup (first lines):<br>
Nov 13 11:44:42 lasola /usr/sbin/kamailio[16113]: DEBUG:
<core> [daemonize.c:583]: set_core_dump(): core dump
limits set to 18446744073709551615<br>
Nov 13 11:44:42 lasola /usr/sbin/kamailio[16113]: WARNING:
<core> [main.c:2475]: main(): tls support enabled, but
no tls engine available (forgot to load the tls module?)<br>
Nov 13 11:44:42 lasola /usr/sbin/kamailio[16113]: WARNING:
<core> [main.c:2476]: main(): disabling tls...<br>
Nov 13 11:44:42 lasola /usr/sbin/kamailio[16113]: DEBUG:
<core> [async_task.c:88]: async_task_init(): start
initializing asynk task framework<br>
Nov 13 11:44:42 lasola /usr/sbin/kamailio[16113]: DEBUG:
<core> [sr_module.c:959]: init_mod(): xmlrpc<br>
Nov 13 11:44:42 lasola /usr/sbin/kamailio[16113]: DEBUG:
<core> [sr_module.c:689]: find_mod_export_record():
find_export_record: found <bind_sl> in module sl
[/usr/lib/x86_64-linux-gnu/kamailio/modules//sl.so]<br>
Nov 13 11:44:42 lasola /usr/sbin/kamailio[16113]: DEBUG:
<core> [sr_module.c:959]: init_mod(): sl<br>
<br>
</div>
In our config file we have the following lines for TLS (pretty
late, after all other module loading and after most
parameters):<br>
</div>
<div><br>
#!ifdef ENABLETLS<br>
loadmodule "tls.so"<br>
<br>
modparam("tls", "private_key",
"/etc/ssl/private/my.kamailio-key.pem")<br>
modparam("tls", "certificate",
"/etc/ssl/certs/my.kamailio.crt")<br>
#!ifdef TLS_CA_CHAIN<br>
# Maybe we want to use a chain to the CA<br>
modparam("tls", "ca_list", "/etc/ssl/certs/my.ca-bundle.crt")<br>
#!endif<br>
enable_tls=1<br>
listen=tls:<a moz-do-not-send="true"
href="http://1.2.3.4:5061">1.2.3.4:5061</a><br>
#!endif<br>
<br>
</div>
<div>After starting up, kamailio listens on port 5060, but not
on port 5061. In version 4.1.1, this config worked without a
problem.<br>
<br>
</div>
<div>Has anybody seen this before? the tls module is there and
available, it doesn't say anything about "cannot load module",
and it is only a warning message. I'm also wondering, why this
message is the first after starting the server. From config I
would expect that sl, tm and all the other modules should be
initialized before tls.<br>
<br>
</div>
<div>Best Regards,<br>
</div>
<div>Sebastian<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a class="moz-txt-link-freetext" href="http://asipto.com/kat">http://asipto.com/kat</a></pre>
</body>
</html>