drachtio / drachtio-freeswitch-modules

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

reload mod_audio_fork fails #123

Closed davehorton closed 1 year ago

davehorton commented 1 year ago

when reloading mod_audio_fork (and probably other modules based on this design, like mod_deepgram) the reloaded module becomes non functional due to the timing of load/unload commands issued by freeswitch and the use of a global variable to signal the lws thread to shut down. The new thread from the reload exits as well as the older thread, so further connection attempts stay in a pending state and are never processed

spointer commented 1 year ago

Hello Dave, I'm just curious that this is the case reloading mod_audio_fork module in freeswitch shell(not restarting freeswitch)?

davehorton commented 1 year ago

correct -- doing reload mod_audio_fork