[Freeswitch-users] How to stop and replay an audio from the beginning?

Anthony Minessale anthony.minessale at gmail.com
Sat Apr 9 03:08:47 MSD 2011


you would at least have to disable the displace you already called
since you can have concurrent displace bugs


On Fri, Apr 8, 2011 at 1:51 PM, Frankie Yiu <frankie.k.yiu at gmail.com> wrote:
> Hi there,
>
> I would like to know what is the preferred way to do the following.
> My application is this:  Make a phone call to a person, after the person
> picks up the phone an message would play.  If he presses the * key, the
> message would stop and start from the beginning again.  I am using C# to
> start the call and play an audio using  PlayAndGetDigits() while in my C++
> code would check the DTMF event.  If it finds a * key pressed, it will call
> the uuid_displace with the same file (but for testing purpose, I am using
> different file).  This is not working right because I can hear that the new
> audio file is playing on top of the original audio instead of stopping the
> original audio and play the new audio.
>
> Anyone has an idea how I should do this?
> Thanks in advance.
>
> Frankie
> _______________________________________________
> 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

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900



More information about the FreeSWITCH-users mailing list