[Freeswitch-users] Whats the best way to insert audio into a call from event socket
Seven Du
dujinfang at gmail.com
Sun Jan 29 10:09:47 MSK 2012
You can chain files with file_string:// so it should work with uuid_displace http://wiki.freeswitch.org/wiki/Mod_file_string
--
About: http://about.me/dujinfang
Blog: http://www.dujinfang.com
Proj: http://www.freeswitch.org.cn
Sent with Sparrow (http://www.sparrowmailapp.com)
On Sunday, January 29, 2012 at 4:17 AM, Fraser Redmond wrote:
> I want to insert a queue of voice recordings into a call, and be able to stop them all. Doing both via the event socket.
>
> Currently I'm doing:
> api uuid_broadcast $uuid fileName1.wav both
> api uuid_broadcast $uuid fileName2.wav both
>
> And stopping the audio with:api uuid_break $uuid all
>
> That works quite well, except for two problems:
> 1) I can't use it because when the audio is playing the parties can't hear each other talk.
> 2) There is a slight delay of about half a second before the audio starts (though I'm guessing this can't be helped.)
>
> Previously I'd used:
> api uuid_displace $uuid start fileName1.wav 0 mux
>
> But I don't think I'd been able to queue up more than one file with that.
>
> There's a few other possibilities that I've thought of, including going into a js/lua script and looping inside that, or changing the call into a conference, and using the conference commands.
>
> Rather than mess around trying lots of ideas, I'd rather focus on the one best approach - any ideas?
>
> Cheers,
> Fraser
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org (mailto: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 (mailto: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/20120129/7faa82d1/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list