Hi Vincent,
 
Create outbound ESL connection with async property as per wiki
<action application="socket" data="127.0.0.1:8084 async full"/>
Once the call is routed to lua socket server that you run on specified port you can execute almost everything
con:execute("application", "params");

For your case, application will be bridge and params will be user/1001, user/1002

hope this helps.
Kalyani

---------- Forwarded message ----------
From: Vincent Xia <gmangudai@gmail.com>
To: freeswitch-users@lists.freeswitch.org
Cc: 
Date: Fri, 16 May 2014 18:22:47 +0800
Subject: [Freeswitch-users] dialing multiple destinations simultaneously in lua
here is what the wiki says about how to dial multiple destinations
simultaneously:

“Multiple destinations in outbound calls. This means any dialstring
may contain a '|' and/or ',' separated list of call URLs. The "|"
calls one call at a time, the "," calls multiple calls simultaneously.
The example below will call 2 locations and connects the first to answer

<extension name="3002">
  <condition field="destination_number" expression="^3002$">
    <action application="bridge"
data="iax/guest@somebox/1234,sofia/test-int/1000@somehost"/>
  </condition>
</extension>”

so my question is what's the equivalent of doing something like

<action application="bridge" data="user/1001, user/1002"/>

in lua script? though i wonder if it's possible cuz someone has said
the scripts are not asynchronous, they work in

blocked mode so the calls will have to be made one after another, not
simultaneously.