<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body>Any reason you are against Python event handlers?<br><br>-------- Original message --------<br>From: Kamal Mustafa <kamal.mustafa@gmail.com> <br>Date: 9/24/17  10:20 PM  (GMT-05:00) <br>To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> <br>Subject: Re: [Freeswitch-users] Python-ESL: ESLconnection.execute() blocked   when handling channel_park under thread <br><br>On 10 May 2017 at 02:39, Lesley Pervis <lesley.pervis@gmail.com> wrote:<br>> Late to answer. Seems no one did, so I'd say don't write event listeners<br>> that run in a Python interpreter that FreeSWITCH knows nothing about and<br>> uses threading.<br><br>Hi, thanks for the reply and advice. I'd appreciate that. It's been<br>quite sometimes after I'm working on this (forgot about this email<br>already) but with recent problem I have, I think we have to open new<br>connection in the handler thread if we want to send another command<br>over the esl socket. We can't reuse the same connection in the main<br>thread.<br><br>Since we're at this, what you think about doing billing in python ? It<br>sound crazy but after seeing cgrates also doing the billing over the<br>event socket, I think maybe it feasible -<br>https://github.com/cgrates/cgrates/blob/master/docs/freeswitch.rst#811-sessionmanager<br><br>I've started a PoC of billing in python and it seem to work, although<br>I haven't put it under load and concurrent tests yet.<br><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br>consulting@freeswitch.org<br>http://www.freeswitchsolutions.com<br><br>Official FreeSWITCH Sites<br>http://www.freeswitch.org<br>http://confluence.freeswitch.org<br>http://www.cluecon.com<br><br>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org</body></html>