[Freeswitch-users] Ringback, MOH or file playback while executing dial plan instructions
Abaci B
abaci64 at gmail.com
Fri Jan 15 00:43:42 MSK 2016
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.
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
On Thu, Jan 14, 2016 at 4:19 PM, <covici at ccs.covici.com> wrote:
> 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
>
> _________________________________________________________________________
> 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/9752aa18/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list