Hi.
I'm newbie in FreeSwitch and I'm trying to develop an application using mod_socket interface.
First, I configured the FreeSwitch to answer any call coming from my gateway:

    (dialplan/public.xml)
    <include>
        <extension name="from_my_gateway">
            <condition field="network_addr" expression="192\.231\.7\.123" >
                <action application="answer"/>
                <action application="sleep" data="50000"/>
            </condition>
        </extension>
    </include>

After that I could play an audio in a call via mod_socket interface:

    api uuid_broadcast b5bd30fb-cd3e-4f13-a975-5be0aef6a0f7 /usr/local/freeswitch/sounds/music/8000/danza-espanola-op-37-h-142-xii-arabesca.wav both
 
So far so good ...
Than I would like to stop the current audio file and play something else.
How could I do that?

I already tried to play another audio file before the first one stop. Nothing happened.
I tried to stop the current audio using:
    api uuid_fileman b5bd30fb-cd3e-4f13-a975-5be0aef6a0f7 stop
but the call was HANGUP

Thanks in advance,
Leo


--

Leonardo N. S. Pereira, Software Engineer
T:+55.19.3112-1200 ext. 1283|F:+55.19.3207-1437
DaitanGroup|www.daitangroup.com|Highly Reliable Outsourcing. Value Added Services Worldwide.
Privileged and confidential. If this message has been received in error, please notify sender and delete it immediately.
Conteúdo confidencial. Se esta mensagem foi recebida por engano, favor avisar o remetente e apagá-la imediatamente.