<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thank you to all for your valuable inputs.<div class="">See? At first it looks super trivial! And I think it should be.&nbsp;</div><div class="">Begin troll mode</div><div class="">With Asterisk, using MusicOnHold or Ringing does exactly that.</div><div class="">End troll mode</div><div class=""><br class=""></div><div class="">I will not give up. I don’t want to result to external programming for something like this, although using a little lua script sounds appealing.</div><div class=""><br class=""></div><div class="">If I get it working like I want I’ll post something here.</div><div class=""><br class=""></div><div class="">Ciao!</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 15, 2016, at 2:54 AM, Stanislav Sinyagin &lt;<a href="mailto:ssinyagin@gmail.com" class="">ssinyagin@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Ringback is played back only when FreeSWITCH starts an outbound channel - during the bridge command, for example. What Enrah wants, is to play the early media while the dialplan execution goes on, but before the call is bridged. <br class=""><br class="">I tried the following sequence, but it didn't work either: the next command after sleep() was never executed, because the originator timed out after 20 seconds, and the audio file was played during these 20 seconds:<br class=""><br class=""><span style="font-family:monospace,monospace" class="">&nbsp; &lt;extension name="test1"&gt;<br class="">&nbsp; &nbsp; &lt;condition field="destination_number" expression="^test1$"&gt;<br class="">&nbsp; &nbsp; &nbsp; &lt;action application="pre_answer"/&gt;<br class="">&nbsp; &nbsp; &nbsp; &lt;action application="ring_ready"/&gt;<br class="">&nbsp; &nbsp; &nbsp; &lt;action application="set" data="api_result=${bgapi(uuid_broadcast ${uuid} /opt/sound/ITU-T_P_50_BRITISH_ENGLISH.wav)}"/&gt;<br class="">&nbsp; &nbsp; &nbsp; &lt;action application="sleep" data="10000"/&gt;<br class="">&nbsp; &nbsp; &nbsp; &lt;action application="set" data="api_result=${uuid_break(${uuid} all)}"/&gt;<br class="">&nbsp; &nbsp; &nbsp; &lt;action application="answer"/&gt;<br class="">&nbsp; &nbsp; &nbsp; &lt;action application="playback" data="ivr/ivr-welcome.wav"/&gt;<br class="">&nbsp; &nbsp; &nbsp; &lt;action application="sleep" data="1000"/&gt;<br class="">&nbsp; &nbsp; &nbsp; &lt;action application="hangup"/&gt;<br class="">&nbsp; &nbsp; &lt;/condition&gt;<br class="">&nbsp; &lt;/extension&gt;<br class=""></span><br class=""><br class=""></div>so, it looks like it needs an external application talking over ESL. <br class=""><div class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Jan 14, 2016 at 4:26 PM, Michael Jerris <span dir="ltr" class="">&lt;<a href="mailto:mike@jerris.com" target="_blank" class="">mike@jerris.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">use whatever sound file you want as your ringback?<br class="">
<span class="im HOEnZb"><br class="">
&gt; On Jan 14, 2016, at 6:42 AM, Emrah &lt;<a href="mailto:lists@kavun.ch" class="">lists@kavun.ch</a>&gt; wrote:<br class="">
&gt;<br class="">
&gt; Hi all,<br class="">
&gt; Is there no way to force a 183 in a session and play a ringback or MOH while executing other dial plan instructions?<br class="">
&gt; Basically, I’ve gone around trying instant_rinback=true, ring_ready, gentones, etc… No luck.<br class="">
&gt; If I bridge my channel to&nbsp; loopback/wait, sure enough it works.<br class="">
&gt; What I need to do is play a ringback or some MOH while I carry on executing my dial plan instructions. The 183 is a nice to have but I don’t mind if the channel is answered.<br class="">
<br class="">
<br class="">
</span><div class="HOEnZb"><div class="h5">_________________________________________________________________________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.org</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a></div></div></blockquote></div><br class=""></div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></body></html>