[Freeswitch-users] mod_python ESL

Michael Jerris mike at jerris.com
Wed Apr 20 18:13:42 MSD 2016


your Python example is missing the action,
conference confname memberid
^^^^ that's not a valid command

On Wednesday, April 20, 2016, Deepika Yadav <deepikay at iiitd.ac.in> wrote:

> 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/8dc2bff4/attachment.html 


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