<div dir="ltr"><div>I was looking for the same thing but gave up as I couldn't get it to work, did you try doing a uuid_broadcast to your own uuid which should start playing a file (not blocking) and in the mean time continue in your dialplan what you want. I tried it and it didn't work for me but it may have been related to what I was trying to do.</div><div>What I ended up doing (which may or may not be of any help to you) is that I started a lua script from the dialplan using luarun which starts it in it's own thread, next step in the dialplan I just did a playback, in the mean time the lua script was doing whatever I needed (it had the call uuid passed on as an arg) when the lua script was done it interrupted the playback using uuid_break</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 14, 2016 at 4:19 PM, <span dir="ltr"><<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dialplan is not good for this, you need a programming language to do<br>
this kind of thing, dialplan actions are static except for inline but<br>
you can't do anything major with that.<br>
<span><br>
Emrah <<a href="mailto:lists@kavun.ch">lists@kavun.ch</a>> wrote:<br>
<br>
> Pre-answer isn’t what I’m looking for, but I appreciate the input.<br>
> The channel is pre-answered already. It’s ready to play early media. My question is how do I play some ringback or MOH while I go at executing next dial plan instructions?<br>
> For example I could do a gentones and loop it indefinitely with a $${us-ring}. But then FS would wait for gentones to exit before proceeding to the next dial plan instruction.<br>
> Setting instant_rinback or executing the ringback app doesn’t help.<br>
> And yes, my ringback and transfer_ringback variables are set.<br>
><br>
> Thanks! .<br>
> > On Jan 14, 2016, at 6:16 PM, Stanislav Sinyagin <<a href="mailto:ssinyagin@gmail.com">ssinyagin@gmail.com</a>> wrote:<br>
> ><br>
> > Emrah,<br>
> ><br>
> > pre_answer is what you're looking for:<br>
</span>> > <a href="https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_pre_answer" target="_blank" rel="noreferrer">https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_pre_answer</a> <<a href="https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_pre_answer" target="_blank" rel="noreferrer">https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_pre_answer</a>><br>
<span>> > On 14 Jan 2016 18:02, "Emrah" <<a href="mailto:lists@kavun.ch">lists@kavun.ch</a> <mailto:<a href="mailto:lists@kavun.ch">lists@kavun.ch</a>>> wrote:<br>
> > Yes of course. I’m not even trying to play a sound file. A ringback would be fine for what I’m trying to do.<br>
> > Let me rephrase. FS isn’t generating any ringback unless I execute a bridge somewhere. This isn’t useful in my case. I’m trying to have the caller hear something while FS keeps executing the dial plan.<br>
> ><br>
> > Something like:<br>
> > <action application=“answer” /><br>
> > <action application=“playback” data=“please-wait” /><br>
> > <action application=“ring_ready” /><br>
> > <action application=“sleep” data=“50000” /><br>
> > <action application=“hangup” /><br>
> ><br>
> > Hope this helps you understand my issue a little better.<br>
> ><br>
> ><br>
> > E<br>
</span><span>> > > On Jan 14, 2016, at 4:26 PM, Michael Jerris <<a href="mailto:mike@jerris.com">mike@jerris.com</a> <mailto:<a href="mailto:mike@jerris.com">mike@jerris.com</a>>> wrote:<br>
> > ><br>
> > > use whatever sound file you want as your ringback?<br>
> > ><br>
</span><span>> > >> On Jan 14, 2016, at 6:42 AM, Emrah <<a href="mailto:lists@kavun.ch">lists@kavun.ch</a> <mailto:<a href="mailto:lists@kavun.ch">lists@kavun.ch</a>>> wrote:<br>
> > >><br>
> > >> Hi all,<br>
> > >> Is there no way to force a 183 in a session and play a ringback or MOH while executing other dial plan instructions?<br>
> > >> Basically, I’ve gone around trying instant_rinback=true, ring_ready, gentones, etc… No luck.<br>
> > >> If I bridge my channel to loopback/wait, sure enough it works.<br>
> > >> 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>
> > ><br>
> > ><br>
> > > _________________________________________________________________________<br>
> > > Professional FreeSWITCH Consulting Services:<br>
</span>> > > <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> <mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>><br>
> > > <a href="http://www.freeswitchsolutions.com" target="_blank" rel="noreferrer">http://www.freeswitchsolutions.com</a> <<a href="http://www.freeswitchsolutions.com/" target="_blank" rel="noreferrer">http://www.freeswitchsolutions.com/</a>><br>
> > ><br>
> > > Official FreeSWITCH Sites<br>
> > > <a href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a> <<a href="http://www.freeswitch.org/" target="_blank" rel="noreferrer">http://www.freeswitch.org/</a>><br>
> > > <a href="http://confluence.freeswitch.org" target="_blank" rel="noreferrer">http://confluence.freeswitch.org</a> <<a href="http://confluence.freeswitch.org/" target="_blank" rel="noreferrer">http://confluence.freeswitch.org/</a>><br>
> > > <a href="http://www.cluecon.com" target="_blank" rel="noreferrer">http://www.cluecon.com</a> <<a href="http://www.cluecon.com/" target="_blank" rel="noreferrer">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> <mailto:<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" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a> <<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>><br>
> > > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/options/freeswitch-users</a> <<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>><br>
> > > <a href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a> <<a href="http://www.freeswitch.org/" target="_blank" rel="noreferrer">http://www.freeswitch.org/</a>><br>
<span>> ><br>
> ><br>
> > _________________________________________________________________________<br>
> > Professional FreeSWITCH Consulting Services:<br>
</span>> > <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> <mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>><br>
> > <a href="http://www.freeswitchsolutions.com" target="_blank" rel="noreferrer">http://www.freeswitchsolutions.com</a> <<a href="http://www.freeswitchsolutions.com/" target="_blank" rel="noreferrer">http://www.freeswitchsolutions.com/</a>><br>
> ><br>
> > Official FreeSWITCH Sites<br>
> > <a href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a> <<a href="http://www.freeswitch.org/" target="_blank" rel="noreferrer">http://www.freeswitch.org/</a>><br>
> > <a href="http://confluence.freeswitch.org" target="_blank" rel="noreferrer">http://confluence.freeswitch.org</a> <<a href="http://confluence.freeswitch.org/" target="_blank" rel="noreferrer">http://confluence.freeswitch.org/</a>><br>
> > <a href="http://www.cluecon.com" target="_blank" rel="noreferrer">http://www.cluecon.com</a> <<a href="http://www.cluecon.com/" target="_blank" rel="noreferrer">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> <mailto:<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" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a> <<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>><br>
> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/options/freeswitch-users</a> <<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>><br>
> > <a href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a> <<a href="http://www.freeswitch.org/" target="_blank" rel="noreferrer">http://www.freeswitch.org/</a>>_________________________________________________________________________<br>
<span>> > Professional FreeSWITCH Consulting Services:<br>
> > <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> > <a href="http://www.freeswitchsolutions.com" target="_blank" rel="noreferrer">http://www.freeswitchsolutions.com</a><br>
> ><br>
> > Official FreeSWITCH Sites<br>
> > <a href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a><br>
> > <a href="http://confluence.freeswitch.org" target="_blank" rel="noreferrer">http://confluence.freeswitch.org</a><br>
> > <a href="http://www.cluecon.com" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> > <a href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a><br>
><br>
><br>
</span>> ----------------------------------------------------<br>
> Alternatives:<br>
><br>
> ----------------------------------------------------<br>
<span class="im HOEnZb">> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" target="_blank" rel="noreferrer">http://www.freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a><br>
> <a href="http://confluence.freeswitch.org" target="_blank" rel="noreferrer">http://confluence.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a><br>
<br>
</span><span class="HOEnZb"><font color="#888888">--<br>
Your life is like a penny. You're going to lose it. The question is:<br>
How do<br>
you spend it?<br>
<br>
John Covici<br>
<a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank" rel="noreferrer">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank" rel="noreferrer">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a></div></div></blockquote></div><br></div>