[Freeswitch-users] Ringback, MOH or file playback while executing dial plan instructions
lists at kavun.ch
Thu Jan 14 22:48:42 MSK 2016
I’m really starting to feel like a pain in the rear-end. But this isn’t what I’m looking for. I’m familiar with how marvelous local_stream is, and all the stuff we can do in terms of customizing a ringback.
What I’m trying to do is generate a fake ringback without invoking a bridge action. I want to launch the ringback and have FS move on to the next dial plan instruction.
The next dial plan instruction could be for instance a sleep for 5000 seconds, followed by a hangup. This should in effect play the fake ringback for 5 seconds and then proceed to hang up the call.
How do you do that?
ring_ready only sends a 180 to an unanswered channel.
At least in my case it didn’t start playing whatever I had in my ringback or transfer_ringback variables in a situation where the channel was in answered mode or early media mode.
> On Jan 14, 2016, at 7:51 PM, Bote Man <bote_radio at botecomm.com> wrote:
> Better still, its modern version on Confluence:
> https://freeswitch.org/confluence/display/FREESWITCH/mod_local_stream#mod_local_stream-ExecutionParameters <https://freeswitch.org/confluence/display/FREESWITCH/mod_local_stream#mod_local_stream-ExecutionParameters>
> FreeSWITCH Docs Janitor
> http://freeswitch.org/confluence <http://freeswitch.org/confluence>
> From: Mario G
> Sent: Thursday, 14 January, 2016 13:37
> Subject: Re: [Freeswitch-users] Ringback, MOH or file playback while executing dial plan instructions
> 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 <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 <mailto:ssinyagin at gmail.com>> wrote:
>> 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.
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> Official FreeSWITCH Sites
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users