[Freeswitch-users] Get disconnected message

Antonio Silva asilva at wirelessmundi.com
Tue Oct 4 02:07:49 MSD 2016


Hi all,

I've a simple lua esl script to handle fs events outside the main 
program, were:


while(con:connected() == 1) do
     -- get and act on con:events
     -- break the loop on event SERVER_DISCONNECTED or SHUTDOWN
done


It works quite well, but at some points the loop just breaks without the 
receiving any control event (disconnected or shutdown) and i can't 
figure out why it breaks. I got it running for 5 h...

Is it possible to get the cause why con:connected() is returning 0? or 
some log i could enable?


The scripts is running on debian 8.6 and Lua 5.2.3.


Thanks,
António




Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list