David,<br><br>Do you have a call in progress at this point? If not then you'll need to supply a uuid of a live call, as mentioned here:<br><a href="http://wiki.freeswitch.org/wiki/Event_Socket_Library#execute">http://wiki.freeswitch.org/wiki/Event_Socket_Library#execute</a><br>
<br>Remember, "execute" means "execute dialplan application" so if there's no channel then "execute" really doesn't mean a whole lot.<br><br>Alternatively you could try something like this:<br>
<br>$con->api("log","WARNING Don't cross the streams!!");<br><br>Remember this rule of thumb: pretty much anything you type at fs_cli is an "API" and therefore you can use $con->api(), whereas anything that is a diaplan application requires an actual channel on which to run $con->execute(). <br>
<br>Hope that makes sense... :)<br><br>-Michael<br><br><div class="gmail_quote">On Thu, Aug 2, 2012 at 8:43 AM, David Villasmil <span dir="ltr"><<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Guys,<div><br></div><div>I'm starting off with ESL, which is cool, but I'm trying to log to the console like Lua's "freeswitch.consoleLog("info", "BLAH BLAH");" doing it like: </div>
<div><br></div><div>my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon");</div><div>$con->execute("log", "1, BlahBlah");</div><div><br></div><div><br></div>
<div>But nothing gets in the log files or console... and I can't find any documentation as to how to log using "execute"...</div><div><br></div><div>any ideas?</div><div><br></div><div>Thanks!</div><span class="HOEnZb"><font color="#888888"><div>
<br>
</div><div>David</div>
</font></span><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>