<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Hi Vincent,</div><div> </div><div>Create outbound ESL connection with async property as per wiki</div><div><pre style="font-family:monospace,Courier;padding:1em;border:1px dashed rgb(47,111,171);color:rgb(0,0,0);background-color:rgb(249,249,249);line-height:1.3em;font-size:12.727272033691406px">
<action application="socket" data="<a href="http://127.0.0.1:8084">127.0.0.1:8084</a> async full"/></pre></div><div>Once the call is routed to lua socket server that you run on specified port you can execute almost everything</div>
<div>con:execute("application", "params");</div><div><br></div><div>For your case, application will be bridge and params will be user/1001, user/1002</div><div><br></div><div>hope this helps.</div><div>
Kalyani</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">
---------- Forwarded message ----------<br></div></div>From: Vincent Xia <<a href="mailto:gmangudai@gmail.com">gmangudai@gmail.com</a>><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Cc: <br>Date: Fri, 16 May 2014 18:22:47 +0800<br>Subject: [Freeswitch-users] dialing multiple destinations simultaneously in lua<br>here is what the wiki says about how to dial multiple destinations<br>
simultaneously:<br>
<br>
“Multiple destinations in outbound calls. This means any dialstring<br>
may contain a '|' and/or ',' separated list of call URLs. The "|"<br>
calls one call at a time, the "," calls multiple calls simultaneously.<br>
The example below will call 2 locations and connects the first to answer<br>
<br>
<extension name="3002"><br>
<condition field="destination_number" expression="^3002$"><br>
<action application="bridge"<br>
data="iax/guest@somebox/1234,sofia/test-int/1000@somehost"/><br>
</condition><br>
</extension>”<br>
<br>
so my question is what's the equivalent of doing something like<br>
<br>
<action application="bridge" data="user/1001, user/1002"/><br>
<br>
in lua script? though i wonder if it's possible cuz someone has said<br>
the scripts are not asynchronous, they work in<br>
<br>
blocked mode so the calls will have to be made one after another, not<br>
simultaneously.<br>
<br>
<br></blockquote></div></div></div>