On 10 May 2017 at 02:39, Lesley Pervis <lesley.pervis@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-sessi... 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.