[Freeswitch-users] uuid_broadcast hang and start after the call hangup

Dmitry Mordovin d.mordovin at crestwavetech.ru
Tue Jun 1 19:13:59 UTC 2021


Hello

I have LUA script which start a call (new session generated)
Code here

new_session = freeswitch.Session(destination);

if (new_session:ready()) then
    new_session_disp = new_session:getVariable("endpoint_disposition");
    while(new_session:ready() and new_session_disp ~= "ANSWER") do
<------>new_session_disp = new_session:getVariable("endpoint_disposition");
    end
    api = freeswitch.API();
    api:executeString("bgapi uuid_park " .. tostring(new_session.uuid));
end


On answer event I park the call and script finished.
I see single active call. Listing below.

freeswitch at freeswitch43> show calls
uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,presence_id,presence_data,accountcode,callstate,callee_name,callee_num,callee_direction,call_uuid,hostname,sent_callee_name,sent_callee_num,b_uuid,b_direction,b_created,b_created_epoch,b_name,b_state,b_cid_name,b_cid_num,b_ip_addr,b_dest,b_presence_id,b_presence_data,b_accountcode,b_callstate,b_callee_name,b_callee_num,b_callee_direction,b_sent_callee_name,b_sent_callee_num,call_created_epoch
3aa3a274-c23d-11eb-9150-e74dc4cdb20a,outbound,2021-05-31 18:22:59,1622485379,sofia/external/1000,CS_PARK,,0000000000,,1000,,,,ACTIVE,Outbound Call,1000,,3aa3a274-c23d-11eb-9150-e74dc4cdb20a,freeswitch43,,,,,,,,,,,,,,,,,,,,,,

1 total.


After all I execute command from cli:

Command looks like:
uuid_broadcast 3aa3a274-c23d-11eb-9a50-e74dc4cdb20a lua::’next-script.lua' both 

In logs I see, command was sent to FS success, but not executed!
Moveover, after call hangup, FS start execution of command but can’t coz call in terminate state.

2021-05-31 18:23:30.312133 [NOTICE] sofia.c:1079 Hangup sofia/external/1000 [CS_PARK] [NORMAL_CLEARING]
2021-05-31 18:23:30.312133 [DEBUG] switch_ivr.c:625 sofia/external/1000 Command Execute lua(next-script.lua)
2021-05-31 18:23:30.312133 [DEBUG] switch_core_session.c:2668 sofia/external/1000 ZOMBIE EXEC lua(next-script.lua)
EXECUTE sofia/external/1000 lua(next-script.lua)

What/why is ZOMBIE EXEC ?

Could someone help me to find reason of strange behavior FS?

Looks like the uuid_broadcast command stay in queueu and wait something… and start after call has hangup. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20210601/351d9283/attachment.html>


More information about the FreeSWITCH-users mailing list