[Freeswitch-users] Handling Multi Call in Lua

Michael Collins msc at freeswitch.org
Thu Jun 28 21:15:13 MSD 2012


On Thu, Jun 28, 2012 at 7:40 AM, Shahzad Bhatti <shahzad.bhatti at g-r-v.com>wrote:

>
> 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.
>
> please guide me how i can call 5 numbers at the same time,
>
Short answer: you can't.

Each Lua instance corresponds to a single session/channel. Can'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.
-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120628/2e0d687b/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list