<br><br><div class="gmail_quote">On Thu, Jun 28, 2012 at 7:40 AM, Shahzad Bhatti <span dir="ltr">&lt;<a href="mailto:shahzad.bhatti@g-r-v.com" target="_blank">shahzad.bhatti@g-r-v.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br></div><div>i want to originate 5 calls after one second sleep using lua and get the response using playandgetdigits(), but scipt originate call one by one.</div><div><br></div><div>please guide me how i can call 5 numbers at the same time,</div>
</blockquote><div>Short answer: you can&#39;t.<br><br>Each Lua instance corresponds to a single session/channel. Can&#39;t have more than one when doing it like this. If you need to control multiple channels then you really, really need to be using the event socket, and ESL in particular. I recommend chapter 9 of the original FS book and chapter 4 of the FS cookbook. There are also lots of examples in the source tree, in freeswitch-contrib, and on the wiki.<br>
-MC<br></div></div><br>