[Freeswitch-users] mod_python ESL

Deepika Yadav deepikay at iiitd.ac.in
Wed Apr 20 12:20:27 MSD 2016


Hi,

I want to change the speaking status of a conference member through a
python script as:

import ESL
freeswitchcon =  ESL.ESLconnection(freeswitch_ip, freeswitch_port,
freeswitch_name)
cmd = conferencename + member_id
freeswitchcon.api("conference", str(cmd))

This api doesn't doesn't fired though "originate" command works

Another option :

import freeswitch

new_api_obj = API()
new_api_obj.executeString("conference "+conferencename+" "+member_id)

but this can't be called, due to module "_freeswitch" import error, instead
need to called via the dialplan that calls the handler, doesn't looks a
good way to do it

I am able to achieve this functionality in mod_java ESL simply using ;

org.freeswitch.swig.API a = new API(new JavaSession());
String rt = a.executeString("conference "+conferencename+" mute
"+member_id);

How can I achieve this in python?

Regards,
Deepika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160420/2b1eaf5f/attachment.html 


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