your Python example is missing the action, <div>conference confname memberid</div><div>^^^^ that's not a valid command<span></span></div><div><br>On Wednesday, April 20, 2016, Deepika Yadav <<a href="mailto:deepikay@iiitd.ac.in">deepikay@iiitd.ac.in</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, <div><br></div><div>I want to change the speaking status of a conference member through a python script as:</div><div><br></div><div>import ESL</div><div>freeswitchcon = ESL.ESLconnection(freeswitch_ip, freeswitch_port, freeswitch_name)<br></div><div>cmd = conferencename + member_id</div><div>freeswitchcon.api("conference", str(cmd))</div><div><br></div><div>This api doesn't doesn't fired though "originate" command works </div><div><br></div><div>Another option :</div><div><br></div><div>import freeswitch</div><div><br></div><div><div>new_api_obj = API()</div><div>new_api_obj.executeString("conference "+conferencename+" "+member_id)</div></div><div><br></div><div>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</div><div><br></div><div>I am able to achieve this functionality in mod_java ESL simply using ; </div><div><br></div><div>org.freeswitch.swig.API a = new API(new JavaSession());<br></div><div>String rt = a.executeString("conference "+conferencename+" mute "+member_id);<br></div><div><br></div><div>How can I achieve this in python?</div><div><br></div><div>Regards,</div><div>Deepika</div><div><br></div></div>
</blockquote></div>