I've never tried exactly this scenario but I think you can use uuid_break to stop the playback of the current call. Use the "all" flag to discard the playback of all sound files that are currently queued up to be played to the channel.<br>
<br><a href="http://wiki.freeswitch.org/wiki/Mod_commands#uuid_break">http://wiki.freeswitch.org/wiki/Mod_commands#uuid_break</a><br><br>Let us know if that works... and welcome to FreeSWITCH, btw! Oh, and be sure to send future questions like this to the freeswitch-users list because you'll have a wider audience and will probably get a quicker response. The -dev list is more for digging deeper into the code, like the C code, etc. :)<br>
<br>-MC<br><br><div class="gmail_quote">On Mon, Jul 2, 2012 at 12:55 PM, Leonardo <span dir="ltr"><<a href="mailto:leonardo@daitangroup.com" target="_blank">leonardo@daitangroup.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<font face="Courier New, Courier, monospace">Hi.<br>
I'm newbie in FreeSwitch and I'm trying to develop an application
using mod_socket interface.<br>
First, I configured the FreeSwitch to answer any call coming from
my gateway:<br>
<br>
(dialplan/public.xml) <br>
<include><br>
<extension name="from_my_gateway"><br>
<condition field="network_addr"
expression="192\.231\.7\.123" ><br>
<action application="answer"/><br>
<action application="sleep" data="50000"/><br>
</condition><br>
</extension><br>
</include><br>
<br>
After that I could play an audio in a call via mod_socket
interface:<br>
<br>
api uuid_broadcast b5bd30fb-cd3e-4f13-a975-5be0aef6a0f7
/usr/local/freeswitch/sounds/music/8000/danza-espanola-op-37-h-142-xii-arabesca.wav
both<br>
<br>
So far so good ...<br>
Than I would like to stop the current audio file and play
something else.<br>
How could I do that?<br>
<br>
I already tried to play another audio file before the first one
stop. Nothing happened.<br>
I tried to stop the current audio using:<br>
api uuid_fileman b5bd30fb-cd3e-4f13-a975-5be0aef6a0f7 stop<br>
but the call was HANGUP<br>
<br>
Thanks in advance,<br>
Leo<span class="HOEnZb"><font color="#888888"></font></span></font><br></div></blockquote></div><br>