freeswitch / mod_mosquitto

mod_mosquitto is a FreeSWITCH interface to an MQTT broker using the Eclipse Mosquitto project C client library.
Other
3 stars 3 forks source link

mod_mosquitto cannot be loaded by FreeSWITCH #16

Open ginkel opened 8 months ago

ginkel commented 8 months ago

Hello everyone,

while evaluation options to connect our FreeSWITCH instance to MQTT I came across mod_mosquitto. Unfortunately, I haven't been able to successfully load it into FreeSWITCH 1.10.10. Our FreeSWITCH deployment is using a Debian 11 based Docker image that installs FreeSWITCH using the official Debian packages. I temporarily published the Docker build at: https://github.com/tgbyte/docker-freeswitch.

I am using the following Makefile (based on https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/Community/Contributing-Code/Creating-New-Modules/#using-development-headers-libfreeswitch-dev) to build the module against libfreeswitch-dev instead of compiling FreeSWITCH from scratch: https://github.com/tgbyte/docker-freeswitch/blob/main/Makefile

Describe the bug The built module cannot be loaded by FreeSWITCH (despite being present in /usr/lib/freeswitch/mod):

2023-11-13 22:10:38.469896 0.00% [CRIT] switch_loadable_module.c:1754 Error Loading module /usr/lib/freeswitch/mod/mod_mosquitto.so
**Module load routine returned an error**

Unfortunately, increasing FreeSWITCH's log level did not lead to more information. Executing ld on the module's .so does not show any dependency issues.

Any ideas?

Thanks, Thilo

NormB commented 3 months ago

Sorry for the delay. Will look into this even though I expect that you've "moved on".

ginkel commented 3 months ago

Thanks for getting back to me! I am currently using baresip to signal calls via mqtt, but getting this module to work would be really nice.

Let me know if you need any further details!