[Freeswitch-users] non-blocking music

Anthony Minessale anthony.minessale at gmail.com
Thu Sep 17 09:36:31 MSD 2015


uuid_broadcast does not block.
The problem is you are calling it from your js app which is occupying the
session thread.

To perform async operation you need to run your script outside the session
thread by calling the script via the api interface via jsrun and pass the
uuid then put the channel into park or use an esl script to control the
session externally.



On Wednesday, September 16, 2015, Dušan Dragić <dragic.dusan at gmail.com>
wrote:

> Have you tried displace_session ?
>
> On 15 September 2015 at 21:43, Matt Broad <matt at supportedbusiness.com
> <javascript:;>> wrote:
> > Hi,
> >
> > I can see that this question has been asked before, but my googling
> ability
> > has let me down.
> > Is it possible to play some music which does not block?
> > I am trying to put together a javascript service that will play music
> whilst
> > doing some other tasks.
> > I have tried playfile & uuid_broadcast and both block.  Is there another
> > method that I am missing?
> > Or perhaps I am missing something :)  Any help would be appreciated.
> >
> > thanks
> >
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org <javascript:;>
> > http://www.freeswitchsolutions.com
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://confluence.freeswitch.org
> > http://www.cluecon.com
> >
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org <javascript:;>
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
>
>
>
> --
> Dušan Dragić
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <javascript:;>
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org <javascript:;>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org



-- 
Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬

☞ http://freeswitch.org/http://cluecon.com/http://twitter.com/FreeSWITCH
☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
<http://freeswitch.org/g+>*

ClueCon Weekly Development Call
☎ sip:888 at conference.freeswitch.org  ☎ +19193869900

https://www.youtube.com/watch?v=9XXgW34t40s
https://www.youtube.com/watch?v=NLaDpGQuZDA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150917/decaa1da/attachment.html 


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