switch_ivr_displace_session() works! Thanks a lot! ----------------original message----------------- From: "Peter Olsson" To: "'freeswitch-dev@lists.freeswitch.org '" freeswitch-dev@lists.freeswitch.org Date: Tue, 25 Oct 2011 11:50:59 +0200 -------------------------------------------------
For a bridged call you're not supposed to use switch_ivr_play_file(), since the bridge is sending frames in a separate thread. I think switch_ivr_displace_session() should work for your needs.
/Peter
-----Ursprungligt meddelande----- Från: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org ] För Han Xin Skickat: den 25 oktober 2011 11:24 Till: freeswitch-dev@lists.freeswitch.org Ämne: Re: [Freeswitch-dev] choppy sound with .wav file played inthebackground
hmm, just one call with two sessions, one is the local session, the other is the remote/partner session.
I want to play a indication sound file when I press a button on each side, while the call is ongoing. That's what I mean with the background. sorry for the vague description.
Regards, Han
----------------original message----------------- From: "Peter Olsson" To: "'freeswitch-dev@lists.freeswitch.org '" freeswitch-dev@lists.freeswitch.org Date: Tue, 25 Oct 2011 11:00:53 +0200 -------------------------------------------------
How do you mean when you say "in background"? Are ju running this command from another thread then the channel's own thread?
/Peter
-----Ursprungligt meddelande----- Från: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org ] För Han Xin Skickat: den 25 oktober 2011 10:53 Till: freeswitch-dev@lists.freeswitch.org Ämne: [Freeswitch-dev] choppy sound with .wav file played in the background
Hi all, I have another question to ask again :P
When I use:
switch_ivr_play_file(session, NULL, file_path, NULL);
to play a file such as "misc/8000/sorry.wav" directly, the sound is so choppy.
Am I doing the background sound playing the right way?
Han --
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch -d ev http://www.freeswitch.org
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch -d ev http://www.freeswitch.org
--
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-d ev http://www.freeswitch.org
!DSPAM:4ea67f5932765780018021!
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-d ev http://www.freeswitch.org
--