[Freeswitch-users] Ringback, MOH or file playback while executing dial plan instructions

covici at ccs.covici.com covici at ccs.covici.com
Fri Jan 15 00:19:39 MSK 2016


Dialplan is not good for this, you need a programming language to do
this kind of thing, dialplan actions are static except for  inline but
you can't do anything major with that.

Emrah <lists at kavun.ch> wrote:

> Pre-answer isn’t what I’m looking for, but I appreciate the input. 
> 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?
> 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.
> Setting instant_rinback or executing the ringback app doesn’t help.
> And yes, my ringback and transfer_ringback variables are set.
> 
> Thanks! .
> > On Jan 14, 2016, at 6:16 PM, Stanislav Sinyagin <ssinyagin at gmail.com> wrote:
> > 
> > Emrah,
> > 
> > pre_answer is what you're looking for:
> > https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_pre_answer <https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_pre_answer>
> > On 14 Jan 2016 18:02, "Emrah" <lists at kavun.ch <mailto:lists at kavun.ch>> wrote:
> > 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.
> > 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.
> > 
> > Something like:
> > <action application=“answer” />
> > <action application=“playback” data=“please-wait” />
> > <action application=“ring_ready” />
> > <action application=“sleep” data=“50000” />
> > <action application=“hangup” />
> > 
> > Hope this helps you understand my issue a little better.
> > 
> > 
> > E
> > > On Jan 14, 2016, at 4:26 PM, Michael Jerris <mike at jerris.com <mailto:mike at jerris.com>> wrote:
> > >
> > > use whatever sound file you want as your ringback?
> > >
> > >> On Jan 14, 2016, at 6:42 AM, Emrah <lists at kavun.ch <mailto:lists at kavun.ch>> wrote:
> > >>
> > >> Hi all,
> > >> Is there no way to force a 183 in a session and play a ringback or MOH while executing other dial plan instructions?
> > >> Basically, I’ve gone around trying instant_rinback=true, ring_ready, gentones, etc… No luck.
> > >> If I bridge my channel to  loopback/wait, sure enough it works.
> > >> 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.
> > >
> > >
> > > _________________________________________________________________________
> > > Professional FreeSWITCH Consulting Services:
> > > consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> > > http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
> > >
> > > Official FreeSWITCH Sites
> > > http://www.freeswitch.org <http://www.freeswitch.org/>
> > > http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
> > > http://www.cluecon.com <http://www.cluecon.com/>
> > >
> > > FreeSWITCH-users mailing list
> > > FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
> > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> > > http://www.freeswitch.org <http://www.freeswitch.org/>
> > 
> > 
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> > http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
> > 
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org <http://www.freeswitch.org/>
> > http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
> > http://www.cluecon.com <http://www.cluecon.com/>
> > 
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> > http://www.freeswitch.org <http://www.freeswitch.org/>_________________________________________________________________________
> > Professional FreeSWITCH Consulting Services: 
> > consulting at freeswitch.org
> > http://www.freeswitchsolutions.com
> > 
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://confluence.freeswitch.org
> > http://www.cluecon.com
> > 
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> 
> 
> ----------------------------------------------------
> Alternatives:
> 
> ----------------------------------------------------
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: 
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici at ccs.covici.com



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list