Waiting for playing a file as early media
Hello, I'm looking for a way to play a file exactly once in early media state of a call and then do e.g. a 302 reply. When I try it via ring_ready and ringback The playback immediately stops, when I send a respond. regards Helmut
If your actually playing back a file (that blocks) it should work fine. Ringback goes in the background so it doesn't wait for it to "finish" before it does the ringback Mike On Mar 11, 2009, at 4:07 AM, Helmut Kuper wrote:
Hello,
I'm looking for a way to play a file exactly once in early media state of a call and then do e.g. a 302 reply. When I try it via ring_ready and ringback The playback immediately stops, when I send a respond.
regards Helmut
_______________________________________________ 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
Hi again, it works good. Can I assign a sleep to playback somehow to avoid loose of phrases at the beginning? regards Helmut On 11.03.2009 13:22, Helmut Kuper wrote:
Hi Mike,
Thank you!
regards Helmut
On 11.03.2009 12:36, Michael Jerris wrote:
If your actually playing back a file (that blocks) it should work fine. Ringback goes in the background so it doesn't wait for it to "finish" before it does the ringback
_______________________________________________ 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
it works good. Can I assign a sleep to playback somehow to avoid loose of phrases at the beginning?
Are you playing just a single file? You can use the phrase macros to create a pause at the beginning of your playback. Or you can cheat and prepend a few hundred (or thousand) milliseconds of silence at the beginning of your sound file. :) -MC
Hi Mike, yes, it's just one single file. I had the same idea to cheat a bit, but a dynamic solution is better ... will test the phrase macros. thx for the hint! regards helmut On 11.03.2009 16:40, Michael Collins wrote:
it works good. Can I assign a sleep to playback somehow to avoid loose of phrases at the beginning?
Are you playing just a single file? You can use the phrase macros to create a pause at the beginning of your playback. Or you can cheat and prepend a few hundred (or thousand) milliseconds of silence at the beginning of your sound file. :)
__
participants (3)
-
Helmut Kuper
-
Michael Collins
-
Michael Jerris