Thanks Bala.<br>It works.<br><br>Can you explain why instantiating a new API makes expect and telnet connect to each<br>other in the right manner ? <br><br>Thanks again<br>/Mike<br><br><div class="gmail_quote">On Thu, Apr 19, 2012 at 4:35 PM, Balamurugan Mahendran <span dir="ltr">&lt;<a href="mailto:b2m@a-cti.com">b2m@a-cti.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Did you try the below one?<div><br></div><div><div>api = freeswitch.API(); </div><div>api:execute(&quot;system&quot;, &quot; YOUR SYSTEM COMMAND  &quot;);</div>
<div><br></div><div>Thanks,</div><div>Bala</div><div><br></div>

<div><br></div><br><div class="gmail_quote"><div><div class="h5">On Thu, Apr 19, 2012 at 1:10 PM, Mikael Nordman <span dir="ltr">&lt;<a href="mailto:oh2aun@gmail.com" target="_blank">oh2aun@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 class="h5">



<p class="MsoNormal">Hi,</p>

<p class="MsoNormal">I am running an expect script that is executedn from a call
lua session.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">The problem is that the responses come very slowly when run
from within freeswitch.</p>

<p class="MsoNormal">It takes maybe 5 seconds to get each response to the expect
script.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I am starting the expect script from lua_mod with
os.execute.</p>

<p class="MsoNormal">I have also tried session:execute.</p>

<p class="MsoNormal">The behaviour is the same in both cases.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">When running the expect script within a normal shell, it
executes immediately without any delays.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">What could be causing the very slow  responses to the
expect script inside freeswitch ?</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Mike</p>

<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div>
<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>
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>