drachtio / drachtio-freeswitch-modules

A collection of open-sourced freeswitch modules that I use in various drachtio applications
MIT License
172 stars 119 forks source link

[unable to load mod_audio_fork][FreeSWITCH 1.10] #27

Closed bilalabbasi55 closed 4 years ago

bilalabbasi55 commented 4 years ago

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

davehorton commented 4 years ago

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.

bilalabbasi55 commented 4 years ago

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

ghanshyamspearline commented 1 year ago

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