<div dir="ltr">Have you tried moving the "pre_answer" to before the ringback?</div><div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=df0b04f3-83bf-462d-8f08-216164c5a750"><font color="#ffffff" size="1">ᐧ</font></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 31, 2016 at 1:57 PM, Dmitry Sytchev <span dir="ltr"><<a href="mailto:kbdfck@gmail.com" target="_blank">kbdfck@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all!<br>
<br>
I'd like to resolve some unclear ringback behavior in early media<br>
mode. I'm trying to implement ringback while no bridge active.<br>
A calls FS, FS does something, then searching for B and bridges A to B.<br>
<br>
I'd like to start playing custom ringback immediately after call from<br>
A gets into FS, not when we start bridge to B.<br>
<br>
I'm doing something like that:<br>
<br>
<action application="set" data="ringback=%(2000, 4000, 440.0, 480.0)"/><br>
<action application="set" data="instant_ringback=true"/><br>
<action application="set" data="bridge_early_media=true"/><br>
<action application="pre_answer"/><br>
<action application="sleep" data="10000"/><br>
...<br>
<action application="bridge" data="some bridge data"/><br>
<br>
There is no ringback to A in such scenario until bridge is called in<br>
further dialplan processing. I've tried all combinations of<br>
ignore/bridge early media, but with no luck. Pre_answer can be called<br>
directly or by FS when call is recorded, with no difference. There is<br>
a wiki page that recommends usage of ring_ready:<br>
<br>
<a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+ring_ready" rel="noreferrer" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+ring_ready</a><br>
<br>
ring_ready works, but it can give only Ringing to calling side, so I<br>
can't pass custom RBT to calling party. It would be enough for me, but<br>
once somebody calls pre_answer, no early media is passed until bridge<br>
attempt.<br>
<br>
What can be done to resolve this? Thanks in advance.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Best regards,<br>
<br>
Dmitry Sytchev,<br>
IT Engineer<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>