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

Mario G mario_fs at mgtech.com
Thu Jan 14 21:36:57 MSK 2016


In case you want to customize the ringback for each caller, see the link below (Anthony did a great job making timeout work as needed). I use it for every caller. I have a LUA program that dynamically builds the sound stream and adjusts the length of the music. https://wiki.freeswitch.org/wiki/Mod_local_stream#Execution_Parameters
Mario G

> On Jan 14, 2016, at 9:16 AM, 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160114/da347a46/attachment.html 


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