<p></p>

<h3>Description</h3>
<p>I wanted to use the rtpengine module wiith websockets, so I installed the kamailio-lwsc-modules debian package. The problem is when I want to load the lwsc module it fails, because there is no lwsc.so file in /usr/lib/x86_64-linux-gnu/kamailio/modules/.</p>
<p>I installed the libwebsockets-dev library, reinstalled the lwsc module, but I experience the same issue.</p>

<h3>Troubleshooting</h3>
<h4>Reproduction</h4>
<p>I installed kamailio on Ubuntu 20.04 and simply tried to load lwsc.so with this line <code>loadmodule "lwsc.so"</code></p>

<h4>Log Messages</h4>

<pre><code>Starting Kamailio - the Open Source SIP Server...
May 27 11:23:06 kamailio kamailio[3387]: ERROR: <core> [core/sr_module.c:504]: ksr_locate_module(): could not find module <lwsc> in </usr/lib/x86_64-linux-gnu/kamailio/modules>
May 27 11:23:06 kamailio kamailio[3387]: CRITICAL: <core> [core/cfg.y:3683]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 308, column 12-20: failed to load module
May 27 11:23:06 kamailio kamailio[3387]: ERROR: <core> [core/modparam.c:178]: set_mod_param_regex(): No module matching <lwsc> found
May 27 11:23:06 kamailio kamailio[3387]: CRITICAL: <core> [core/cfg.y:3686]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 460, column 35: Can't set module parameter
May 27 11:23:06 kamailio kamailio[3387]: ERROR: bad config file (2 errors) (parsing code: 0)
May 27 11:23:06 kamailio kamailio[3387]: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
May 27 11:23:06 kamailio systemd[1]: kamailio.service: Control process exited, code=exited, status=255/EXCEPTION
May 27 11:23:06 kamailio systemd[1]: kamailio.service: Failed with result 'exit-code'.
May 27 11:23:06 kamailio systemd[1]: Failed to start Kamailio - the Open Source SIP Server.
May 27 11:23:06 kamailio systemd[1]: kamailio.service: Scheduled restart job, restart counter is at 5.
May 27 11:23:06 kamailio systemd[1]: Stopped Kamailio - the Open Source SIP Server.
May 27 11:23:06 kamailio systemd[1]: kamailio.service: Start request repeated too quickly.
May 27 11:23:06 kamailio systemd[1]: kamailio.service: Failed with result 'exit-code'.
May 27 11:23:06 kamailio systemd[1]: Failed to start Kamailio - the Open Source SIP Server.
</code></pre>
<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>version: kamailio 5.5.0 (x86_64/linux) 
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled with gcc 9.3.0
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>

<p>Ubuntu 20.04</p>
<pre><code>Linux kamailio 5.4.0-73-generic #82-Ubuntu SMP Wed Apr 14 17:39:42 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2749">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKYJ63WR325UAO76L3TPYUE7ANCNFSM45UB5XIA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZINTRHYMRZ2DTIKMVTTPYUE7A5CNFSM45UB5XIKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NO3T4GA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2749",
"url": "https://github.com/kamailio/kamailio/issues/2749",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>