[Freeswitch-users] non-blocking music
Matt Broad
matt at supportedbusiness.com
Thu Sep 17 11:20:40 MSD 2015
Hi Thanks for the reply Anthony, I did start off by using the
uuid_broadcast directly within the js app. But this blocked the code.
I then put together a test js script to just answer, sleep for 15 seconds
and then hangup. I made a call to the service and once answered I ran
uuid_broadcast from fs_cli but although this played the music the call did
not end after 15 seconds and just continued until I hung up.
I haven't come across jsrun before, this would be something worth looking
into
thanks
Matt
On 17 September 2015 at 06:36, Anthony Minessale <
anthony.minessale at gmail.com> wrote:
> 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>
>> 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
>> > 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
>> > 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
>> 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
>> 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
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> 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
> 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/20150917/b65ebca2/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list