[Freeswitch-users] Executing multiple applications in parallel

Avi Marcus avi at avimarcus.net
Fri Jan 25 12:22:31 MSK 2013


ESL gives you more control, especially to execute things in parallel.
If you want to do it within FS, that's a little more complicated, since
most things are sequential.

However, if you use the async APIs, then I think it could work:
1) sched_broadcast<http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_sched_broadcast>
--
schedule the playback of your file on the UUID of the channel, for +0,
meaning now.
2) run your lua script
3) Then stop (break) the playback on that uuid:
break<http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_break>
4) Continue with your execution.

Please wikify your results and let us know how that works out!
-Avi

On Fri, Jan 25, 2013 at 3:34 AM, JP <jaykris at gmail.com> wrote:

> I want to do the following...
>
> 1. Play a long music file from a dialplan.
> 2. While the music is playing, I want to launch a Lua script to do some
> data dip.
> 3. Once the data is fetched and Lua exits, I want to interrupt the music
> and continue in the dialplan
>
> How do I do this. Any sample code or pointers would be greatly appreciated.
>
> Thanks
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130125/d631b3e4/attachment.html 


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