[Freeswitch-users] dialing multiple destinations simultaneously in lua

Kalyani Kulkarni kalyaneekulkarni at gmail.com
Mon May 19 12:13:38 MSD 2014


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 at gmail.com>
> To: freeswitch-users at 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 at somebox/1234,sofia/test-int/1000 at 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.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140519/e1b8083f/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list