Well, it all depends on how you&#39;re calling this script. Is it being called from the dialplan?<br>-MC<br><br><div class="gmail_quote">On Thu, Aug 2, 2012 at 11:25 AM, David Villasmil <span dir="ltr">&lt;<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ouch!<div><br></div><div>Ok, this is not like in Lua... Ok, I&#39;ll try that.... is there any documentation regarding what can and can&#39;t be set and the conditions for setting them? What about bridging channels, etc? </div>


<div><br></div><div>:(</div><div><br></div><div>David<br><br><div class="gmail_quote">On Thu, Aug 2, 2012 at 8:19 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can&#39;t use execute and set unless this is an outbound ESL connection, which it seems not to be. I&#39;d try this:<br>


<br>$con-&gt;api(&quot;uuid_setvar&quot;,&quot;$uuid customer_company $local_variable&quot;);<br><br>-MC<div><div><br>
<br><div class="gmail_quote">On Thu, Aug 2, 2012 at 11:01 AM, David Villasmil <span dir="ltr">&lt;<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



Hello Michael,<div><br></div><div>Yes, there&#39;s a call in progress. Executing it like you said worked. (api)</div><div><br></div><div><br></div><div>Now, I&#39;m trying to set a variable like so:</div><div><br></div><div>





$con-&gt;execute(&quot;set&quot;,&quot;customer_company             = &quot; .  $local_variable , $uuid );</div><div><br></div><div>But it doesn&#39;t get set...</div><div><br></div><div>:(</div><div><br></div><div>Thanks for your help!</div>





<div><br></div><div>David</div><div><br></div><div><br><div class="gmail_quote">On Thu, Aug 2, 2012 at 6:25 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">David,<br><br>Do you have a call in progress at this point? If not then you&#39;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" target="_blank">http://wiki.freeswitch.org/wiki/Event_Socket_Library#execute</a><br>
<br>Remember, &quot;execute&quot; means &quot;execute dialplan application&quot; so if there&#39;s no channel then &quot;execute&quot; really doesn&#39;t mean a whole lot.<br><br>Alternatively you could try something like this:<br>






<br>$con-&gt;api(&quot;log&quot;,&quot;WARNING Don&#39;t cross the streams!!&quot;);<br><br>Remember this rule of thumb: pretty much anything you type at fs_cli is an &quot;API&quot; and therefore you can use $con-&gt;api(), whereas anything that is a diaplan application requires an actual channel on which to run $con-&gt;execute(). <br>






<br>Hope that makes sense... :)<br><br>-Michael<br><br><div class="gmail_quote"><div><div>On Thu, Aug 2, 2012 at 8:43 AM, David Villasmil <span dir="ltr">&lt;<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>&gt;</span> wrote:<br>






</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hello Guys,<div><br></div><div>I&#39;m starting off with ESL, which is cool, but I&#39;m trying to log to the console like Lua&#39;s &quot;freeswitch.consoleLog(&quot;info&quot;, &quot;BLAH BLAH&quot;);&quot; doing it like: </div>








<div><br></div><div>my $con = new ESL::ESLconnection(&quot;localhost&quot;, &quot;8021&quot;, &quot;ClueCon&quot;);</div><div>$con-&gt;execute(&quot;log&quot;, &quot;1, BlahBlah&quot;);</div><div><br></div><div><br></div>








<div>But nothing gets in the log files or console... and I can&#39;t find any documentation as to how to log using &quot;execute&quot;...</div><div><br></div><div>any ideas?</div><div><br></div><div>Thanks!</div><span><font color="#888888"><div>






<br>

</div><div>David</div></font></span><br>
</div></div></blockquote></div></blockquote></div></div></blockquote></div></div></div></blockquote></div></div></blockquote></div><br>