Hello everyone. Is it possible to set a timeout of execution of a script? What I mean is if a script takes more than 10 seconds to execute, for example, freeswitch must hangup. I couldn't find anything about it in mod_python documentation. Thanks in advance.
You could use sched_api (set for your target threshold) to determine whether the conditions for ending the channel are met, and subsequently kill the channel: https://freeswitch.org/confluence/display/FREESWITCH/mod_commands#mod_comman... It really depends on your use case. On Fri, 13 Dec 2019 at 13:57, Caio Assis <caioebassis@hotmail.com> wrote:
Hello everyone.
Is it possible to set a timeout of execution of a script? What I mean is if a script takes more than 10 seconds to execute, for example, freeswitch must hangup.
I couldn't find anything about it in mod_python documentation.
Thanks in advance. _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Best Regards, Ciprian Dosoftei The information transmitted is intended only for the addressee and may contain privileged and/or confidential material. If you are not the intended recipient, kindly contact the sender and delete the message. Any disclosure, distribution or copying of this message is strictly prohibited without the expressed permission of the sender.
participants (2)
-
Caio Assis
-
Ciprian Dosoftei