signalwire / freeswitch

FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
https://freeswitch.com/#getting-started
Other
3.59k stars 1.42k forks source link

core: freeswitch not responding #673

Open wmasilva opened 4 years ago

wmasilva commented 4 years ago

freeswitch stop responding and cannot connect to fs_cli. I type crtl+c and it connects, but soon i do status it exits:

Screenshot 2020-06-04 at 00 00 25

I did a gcore on the pid file to see what could causing it.

Screenshot 2020-06-04 at 00 01 47

But from the dump i can't see any issue. Any idea how to get what could be causing this lock?

I notice this behaviour after i start to use mod_sms to send chat messages between verto and sofia endpoints. I have to kill the process and start FS, but after a few messages between the endpoint it freezes again.

I've done a lua script where i execute verto_contact and sofia contact and then send de message.

Basically my script is:


dialstringVerto = api:execute("verto_contact", userid .. "@" .. domain)
dialstringSofia = api:execute("sofia_contact", userid .. "@" .. domain)

-- send to verto
if (dialstringVerto ~= "") then
    local event = freeswitch.Event("CUSTOM", "SMS::SEND_MESSAGE")
    event:addHeader("proto", "verto")
    event:addHeader("dest_proto", "verto")
    event:addHeader("from", from_user .. "@" .. domain)
    event:addHeader("to", userid .. "@" .. domain)
    event:addHeader("type", content_type)
    event:addBody(body)
    cm.debug(event:serialize())
    event:fire()
end

-- send to sofia
if (dialstringSofia ~= "") then
    local event = freeswitch.Event("CUSTOM", "SMS::SEND_MESSAGE")
    event:addHeader("proto", "sip")
    event:addHeader("dest_proto", "sip")
    event:addHeader("from", from_user .. "@" .. domain .."")
    event:addHeader("from_full", "sip:"..from_user .. "@" .. domain .."")
    event:addHeader("from_user", from_user)
    event:addHeader("from_host", domain)
    event:addHeader("to", dialstringSofia:match("sofia/(.*)"))
    event:addHeader("type", content_type)
    event:addBody(body)
    event:fire()
end

Thanks,

wmasilva commented 4 years ago

Forget important data: debian 10 FreeSWITCH (Version 1.10.4-dev git 8df2eca 2020-05-11 12:46:27Z 64bit) is ready

azzbcc commented 4 years ago

Same problem I have in #695 .

andywolk commented 1 year ago

Please check the latest master and see if that issue is fixed. Expecially https://github.com/signalwire/freeswitch/commit/edd36639c7a57b2430d1df9787137c39da893dfa