[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeswitch-users
Subject:    Re: [Freeswitch-users] Whats the best way to insert audio into a call from event socket
From:       Fraser Redmond <fraserredmond () gmail ! com>
Date:       2012-01-30 21:51:20
Message-ID: CAL9bBtW1UavFvgcXdsb-RQw475POeW=XtgfkWXJ7t+xLcy+_dQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks. So in general, is uuid_displace a better choice than uuid_broadcast?

Cheers,
Fraser




On 29 January 2012 02:09, Seven Du <dujinfang@gmail.com> wrote:

> 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@freeswitch.org
> http://www.freeswitchsolutions.com
>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
> http://www.cudatel.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting@freeswitch.org
> http://www.freeswitchsolutions.com
>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
> http://www.cudatel.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>

[Attachment #5 (text/html)]

Thanks. So in general, is uuid_displace a better choice than uuid_broadcast?<div><br \
clear="all">Cheers,<br>Fraser<br><br><br> <br><br><div class="gmail_quote">On 29 \
January 2012 02:09, Seven Du <span dir="ltr">&lt;<a \
href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex">


                <div>You can chain files with file_string:// so it should work with \
uuid_displace  <a href="http://wiki.freeswitch.org/wiki/Mod_file_string" \
target="_blank">http://wiki.freeswitch.org/wiki/Mod_file_string</a></div>

<div><br></div><div><br></div><div><br></div><div><div>-- </div><div>About: <a \
href="http://about.me/dujinfang" \
target="_blank">http://about.me/dujinfang</a></div><div>Blog: <a \
href="http://www.dujinfang.com" target="_blank">http://www.dujinfang.com</a></div>

<div>Proj:  <a href="http://www.freeswitch.org.cn" \
target="_blank">http://www.freeswitch.org.cn</a></div><div><br></div>Sent with <a \
href="http://www.sparrowmailapp.com" \
target="_blank">Sparrow</a><br><div><br></div></div>

<div><div class="h5">
                 
                <p style="color:#a0a0a8">On Sunday, January 29, 2012 at 4:17 AM, \
                Fraser Redmond wrote:</p>
                </div></div><blockquote type="cite" \
style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px">  \
<span><div><div><div class="h5"><div><div>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.</div><div><br></div><div>Currently I&#39;m doing:</div>

<div><div>api uuid_broadcast $uuid fileName1.wav both</div>

<div>api uuid_broadcast $uuid fileName2.wav both</div><br></div><div>And stopping the \
audio with:</div>api uuid_break $uuid all<div><br></div><div>That works quite well, \
except for two problems:</div>

<div>1) I can&#39;t use it because when the audio is playing the parties can&#39;t \
hear each other talk.</div><div>2) There is a slight delay of about half a second \
before the audio starts (though I&#39;m guessing this can&#39;t be helped.)</div>



<div><br></div><div>Previously I&#39;d used:</div><div>api uuid_displace $uuid start \
fileName1.wav 0 mux</div><div><br></div><div>But I don&#39;t think I&#39;d been able \
to queue up more than one file with that.</div><div>



<br></div><div>There&#39;s a few other possibilities that I&#39;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.</div>



<div><br></div><div>Rather than mess around trying lots of ideas, I&#39;d rather \
focus on the one best approach - any ideas?</div><div><br \
clear="all">Cheers,<br>Fraser<br><br> </div>
</div></div></div><div><div>_________________________________________________________________________</div><div>Professional \
FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org" \
target="_blank">consulting@freeswitch.org</a></div>

<div><a href="http://www.freeswitchsolutions.com" \
target="_blank">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered \
IP PBX: The CudaTel Communication Server</div><div><a href="http://www.cudatel.com" \
target="_blank">http://www.cudatel.com</a></div>

<div><br></div><div>Official FreeSWITCH Sites</div><div><a \
href="http://www.freeswitch.org" \
target="_blank">http://www.freeswitch.org</a></div><div><a \
href="http://wiki.freeswitch.org" \
target="_blank">http://wiki.freeswitch.org</a></div>

<div><a href="http://www.cluecon.com" \
target="_blank">http://www.cluecon.com</a></div><div><br></div><div>FreeSWITCH-users \
mailing list</div><div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" \
target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></div>

<div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" \
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></div><div>UNSUBSCRIBE:<a \
href="http://lists.freeswitch.org/mailman/options/freeswitch-users" \
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></div>


<div><a href="http://www.freeswitch.org" \
target="_blank">http://www.freeswitch.org</a></div></div></div></span>  
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>
            <br>_________________________________________________________________________<br>
 Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" \
target="_blank">http://www.freeswitchsolutions.com</a><br> <br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" \
target="_blank">http://wiki.freeswitch.org</a><br> <a href="http://www.cluecon.com" \
target="_blank">http://www.cluecon.com</a><br> <br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
 <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" \
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> \
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" \
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> \
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> \
<br></blockquote></div><br></div>



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic