Asterisk 13.9.0 and libwebsocket 1.4 (Ubuntu 14.04)

I’ve created a new app for Asterisk in C using libwebsockets 1.4. I made the so file (make and make install, no errors reported) but when I try to load the module in Asterisk I get errors pointing to libwebsockets library.

loader.c:599 load_dynamic_module: Error loading module ‘’: /usr/lib/asterisk/modules/ undefined symbol: libwebsocket_service

When I run ldd /usr/ I get this: => (0x00007ffc45d3a000) => /lib64/ (0x00007f160f0e2000) => /lib64/ (0x00007f160ed4e000)
/lib64/ (0x0000003d60c00000)

It seems the libwebsockets is not linked properly even if the header is defined in my app. I checked the libwebsockets with pkg-config --modversion and I get 1.4 (current rev of libwebsockets library installed on the machine)…
What is the right way to link the libwebsockets to my app? Do I have to change the plugin build config?

Are you using your own build system? If so then you’d have to modify it accordingly.

I have installed Asterisk 13.9.0 on Ubuntu 14.04. I’ve also installed the package for libwebsockets 1.4. Everything seems to work fine except for the libwebsockets library. Sorry, I’m not an expert in Asterisk, what should be modified in this configuration?

These are developer questions, but this is an end user forum. You need the asterisk-dev mailing list or the corresponding IRC channel, although this sounds like it more of a generic Unix/Linux issues than an Asterisk specific one.