drachtio/drachtio-freeswitch-modules

[unable to load mod_audio_fork][FreeSWITCH 1.10]

Closed this issue · 3 comments

Hi,
I am trying to test mod_audio_fork under FreeSWITCH 1.10, after the module is build i am trying to load that in freeswitch but getting following error

2020-03-07 09:03:51.161248 [CRIT] switch_loadable_module.c:1786 Error Loading module /usr/local/freeswitch/mod/mod_audio_fork.so
/usr/local/freeswitch/mod/mod_audio_fork.so: undefined symbol: parse_ws_uri

Can you please help me what i am doing wrong here.

Regards
Abbasi

It seems to me you have not built the module properly since that reference is defined here

https://github.com/davehorton/drachtio-freeswitch-modules/blob/ded6cebe160c2192b93be885d311cebcb284ea6b/modules/mod_audio_fork/lws_glue.cpp#L290

How did you build the module? Please note that it requires a special build of freeswitch itself, which includes lws (libwebsocket). For reference, I use this ansible role to build freeswitch along with this and my other modules

https://github.com/davehorton/ansible-role-fsmrf

You may want to either use that or have a look at it.

Thanks for your reply, i was building mod in my existing freeswitch without noticing at it requires changes in freeswitch.
I did via ansible script and it worked.
Thanks

what kind of changes required in freeswitch? @bilalabbasi55 can you let me know?