Discussion:
[sr-dev] [kamailio/kamailio] Missing lwsc.so (#2749)
Váradi Richárd
2021-05-27 11:28:15 UTC
Permalink
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for bug reports.

If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:

* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

If you have questions about developing extensions to Kamailio or its existing C code, ask on sr-dev mailing list:

* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot the issue.

If there is no content to be filled in a section, the entire section can be removed.

You can delete the comments from the template sections when filling.

You can delete next line and everything above before submitting (it is a comment).
-->

### Description

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/.

I installed the libwebsockets-dev library, reinstalled the lwsc module, but I experience the same issue.
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->

### Troubleshooting

#### Reproduction

I installed kamailio on Ubuntu 20.04 and simply tried to load lwsc.so with this line `loadmodule "lwsc.so"`
<!--
If the issue can be reproduced, describe how it can be done.
-->

#### Log Messages

<!--
Check the syslog file and if there are relevant log messages printed by Kamailio, add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->

```
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.
```

### Additional Information

* **Kamailio Version** - output of `kamailio -v`

```
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
```

* **Operating System**:

<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
Ubuntu 20.04
```
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
```
--
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/2749
Victor Seva
2021-05-27 11:45:58 UTC
Permalink
confirmed, the package doesn't have the file

```
kamailio-lwsc-modules_5.5.0+ubuntu20.04_amd64.deb
-------------------------------------------------
new debian package, version 2.0.
size 99368 bytes: control archive=784 bytes.
649 bytes, 18 lines control
253 bytes, 3 lines md5sums
Package: kamailio-lwsc-modules
Source: kamailio
Version: 5.5.0+ubuntu20.04
Architecture: amd64
Maintainer: Debian VoIP Team <pkg-voip-***@lists.alioth.debian.org>
Installed-Size: 114
Depends: kamailio (= 5.5.0+ubuntu20.04)
Section: net
Priority: optional
Multi-Arch: same
Homepage: http://www.kamailio.org/
Description: Libwebsockets module for the Kamailio SIP server
Kamailio is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, Kamailio can handle thousands calls
per second even on low-budget hardware.
.
This package contains the lwcs module, which provides a client-side WebSockets
API through libwebsockets.
drwxr-xr-x root/root 0 2021-05-05 15:07 ./
drwxr-xr-x root/root 0 2021-05-05 15:07 ./usr/
drwxr-xr-x root/root 0 2021-05-05 15:07 ./usr/share/
drwxr-xr-x root/root 0 2021-05-05 15:07 ./usr/share/doc/
drwxr-xr-x root/root 0 2021-05-05 15:07 ./usr/share/doc/kamailio-lwsc-modules/
-rw-r--r-- root/root 234 2021-05-05 15:07 ./usr/share/doc/kamailio-lwsc-modules/changelog.Debian.gz
-rw-r--r-- root/root 92317 2021-05-05 15:07 ./usr/share/doc/kamailio-lwsc-modules/changelog.gz
-rw-r--r-- root/root 16206 2021-05-05 15:07 ./usr/share/doc/kamailio-lwsc-modules/copyright
```
--
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/2749#issuecomment-849564887
Victor Seva
2021-05-27 12:07:16 UTC
Permalink
Closed #2749 via f49d97fc92d3dbfa11c11ca453b9639aa7f81221.
--
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/2749#event-4805347989
Victor Seva
2021-05-27 12:12:29 UTC
Permalink
@VidarHUN you will need to use [kamailio55-nightly](http://deb.kamailio.org/#dev55) repository until 5.5.1 is released.
Package will be created this night if nothing happens.

Thanks
--
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/2749#issuecomment-849580200
Váradi Richárd
2021-05-27 13:12:26 UTC
Permalink
I updated my source list, but nothing changed after reinstall:
```
new Debian package, version 2.0.
size 99384 bytes: control archive=792 bytes.
685 bytes, 18 lines control
253 bytes, 3 lines md5sums
Package: kamailio-lwsc-modules
Source: kamailio
Version: 5.5.1~ubuntu20.04.20210527023337.10
Architecture: amd64
Maintainer: Debian VoIP Team <pkg-voip-***@lists.alioth.debian.org>
Installed-Size: 114
Depends: kamailio (= 5.5.1~ubuntu20.04.20210527023337.10)
Section: net
Priority: optional
Multi-Arch: same
Homepage: http://www.kamailio.org/
Description: Libwebsockets module for the Kamailio SIP server
Kamailio is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, Kamailio can handle thousands calls
per second even on low-budget hardware.
.
This package contains the lwcs module, which provides a client-side WebSockets
API through libwebsockets.
```
```
drwxr-xr-x root/root 0 2021-05-27 02:33 ./
drwxr-xr-x root/root 0 2021-05-27 02:33 ./usr/
drwxr-xr-x root/root 0 2021-05-27 02:33 ./usr/share/
drwxr-xr-x root/root 0 2021-05-27 02:33 ./usr/share/doc/
drwxr-xr-x root/root 0 2021-05-27 02:33 ./usr/share/doc/kamailio-lwsc-modules/
-rw-r--r-- root/root 237 2021-05-27 02:33 ./usr/share/doc/kamailio-lwsc-modules/changelog.Debian.gz
-rw-r--r-- root/root 92317 2021-05-06 02:33 ./usr/share/doc/kamailio-lwsc-modules/changelog.gz
-rw-r--r-- root/root 16206 2021-04-27 14:07 ./usr/share/doc/kamailio-lwsc-modules/copyright
```

I only reinstalled the kamilio-lwsc-modules package and not the whole kamailio.
--
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/2749#issuecomment-849623026
Henning Westerholt
2021-05-27 13:16:36 UTC
Permalink
You need to wait until tomorrow
--
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/2749#issuecomment-849625986
Váradi Richárd
2021-05-27 13:22:05 UTC
Permalink
Alright
--
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/2749#issuecomment-849629983
Loading...