<!-- 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 ```
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-maintainers@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 ```
Closed #2749 via f49d97fc92d3dbfa11c11ca453b9639aa7f81221.
@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
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-maintainers@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 need to wait until tomorrow
Alright
Hello, is it expected the package for this module to be built for debian buster ?
From [lwsc](https://www.kamailio.org/docs/modules/5.5.x/modules/lwsc.html#idm24) docs: libwebsockets - probably v3.1.0 or newer.
https://packages.debian.org/buster/libwebsockets-dev
Package: libwebsockets-dev (2.0.3-3)
So no lwsc module for buster is planned
Initially it was based on libwebsockets 3.1, but then I made it compile for Debian 10 in order to use it for rtpengine websocket control. I forgot to update the docs -- did it in master a few minutes ago, will backport.
Anyhow, in short, it compiles fine on Debian 10 and iirc Richard tested the module when adding websocket support to rtpengine module.