[Freeswitch-users] Python-ESL: ESLconnection.execute() blocked when handling channel_park under thread

Robert Mundkowsky rfmundkowsky at yahoo.com
Mon Sep 25 03:32:02 UTC 2017


Any reason you are against Python event handlers?

-------- Original message --------
From: Kamal Mustafa <kamal.mustafa at gmail.com> 
Date: 9/24/17  10:20 PM  (GMT-05:00) 
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org> 
Subject: Re: [Freeswitch-users] Python-ESL: ESLconnection.execute() blocked
  when handling channel_park under thread 

On 10 May 2017 at 02:39, Lesley Pervis <lesley.pervis at gmail.com> wrote:
> Late to answer. Seems no one did, so I'd say don't write event listeners
> that run in a Python interpreter that FreeSWITCH knows nothing about and
> uses threading.

Hi, thanks for the reply and advice. I'd appreciate that. It's been
quite sometimes after I'm working on this (forgot about this email
already) but with recent problem I have, I think we have to open new
connection in the handler thread if we want to send another command
over the esl socket. We can't reuse the same connection in the main
thread.

Since we're at this, what you think about doing billing in python ? It
sound crazy but after seeing cgrates also doing the billing over the
event socket, I think maybe it feasible -
https://github.com/cgrates/cgrates/blob/master/docs/freeswitch.rst#811-sessionmanager

I've started a PoC of billing in python and it seem to work, although
I haven't put it under load and concurrent tests yet.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170924/e0e633bc/attachment.html>


More information about the FreeSWITCH-users mailing list