Open wmasilva opened 4 years ago
forget to add that this issue is not happening in fs v1.8 in debian jessie.
It happen to me now that i'm trying to update to FS v1.10, it happen on both old old debian jessie and debian buster (10).
found what is causing the lock, i've a lua script to handle sip messages, to reply to the sender i use sofia_contact function, disable it and using the information received from the message prevents this issue from happening.
Is there a way to debug what is causing the lock in sofia_contact? or another way to avoid this? i want to use sofia_contact so i can initiate the chat from the server.
My function to send message:
contact = api:execute("sofia_contact", destination);
sip_profile = contact:match("sofia/(.*)/") or "";
sip_to = contact:match("sofia/.*/(.*)") or "";
if (sip_profile == "" or sip_to == "") then
cm.warning("invalid sip_profile or sip_to, sofia_contact " .. destination .. " returned " .. contact);
return
end
local event = freeswitch.Event("CUSTOM", "SMS::SEND_MESSAGE");
event:addHeader("proto", "sip");
event:addHeader("dest_proto", "sip");
event:addHeader("blocking", "true");
event:addHeader("sip_profile", sip_profile);
event:addHeader("from", "autoreply@" .. domain_name);
event:addHeader("from_full", "sip:autoreply@" .. domain_name);
event:addHeader("to", sip_to);
event:addHeader("type", content_type);
event:addBody(body);
cm.debug(event:serialize());
event:fire();
runnning fs current master fs just stop processing new calls, registration and when tried to connect..i couldn't.
This as been discuss in the mainling "FreeSwitch Hangs and Fails to Process anything", hope the new data helps to figure it out what is causing the issue.
In log the last messages where:
Attach full bt. gdb.txt