freeswitch
freeswitch copied to clipboard
mod_erlang_event crashes when Erlang node shuts down
I'm using FreeSWITCH 1.10 and Debian Buster. My dialplan extension is configured in the following way:
<extension name="padif_ivr">
<condition field="destination_number" expression="^5000$">
<action application="erlang" data="freeswitch_call_handler_sup:get_fs_handler paddy@caj"/>
</condition>
</extension>
and it basically works - I can control the call from Erlang and things are as expected. The problem I run into is that the moment I shut down my Erlang node, FreeSWITCH crashes:
2020-04-08 08:40:26.115479 [ERR] mod_erlang_event.c:1044 erl_error: status=-1, erl_errno=5 errno=0
2020-04-08 08:40:26.135393 [ERR] mod_erlang_event.c:1075 listener exit: status=-1, erl_errno=5 errno=0
which is a bit inconvenient because I will regularly restart the Erlang node for updates and I want to avoid downtime of the FreeSWITCH server. I haven't been able to find much information on the error number that's referenced. I would be willing to try and contribute a fix (though I'm not very experienced with C) but I don't really know where to start.