Ringback, MOH or file playback while executing dial plan instructions
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. Thanks, Emrah
use whatever sound file you want as your ringback?
On Jan 14, 2016, at 6:42 AM, Emrah <lists@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.
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@jerris.com> wrote:
use whatever sound file you want as your ringback?
On Jan 14, 2016, at 6:42 AM, Emrah <lists@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Emrah, pre_answer is what you're looking for: https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_pre_answer On 14 Jan 2016 18:02, "Emrah" <lists@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@jerris.com> wrote:
use whatever sound file you want as your ringback?
On Jan 14, 2016, at 6:42 AM, Emrah <lists@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@kavun.ch <mailto:lists@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@jerris.com <mailto:mike@jerris.com>> wrote:
use whatever sound file you want as your ringback?
On Jan 14, 2016, at 6:42 AM, Emrah <lists@kavun.ch <mailto:lists@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto:FreeSWITCH-users@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto:FreeSWITCH-users@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Better still, its modern version on Confluence: https://freeswitch.org/confluence/display/FREESWITCH/mod_local_stream#mod_lo... J --- Bote 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 Mario G On Jan 14, 2016, at 9:16 AM, Stanislav Sinyagin <ssinyagin@gmail.com> wrote: Emrah, pre_answer is what you're looking for: https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_pre_answer On 14 Jan 2016 18:02, "Emrah" <lists@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
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. Thanks!
On Jan 14, 2016, at 7:51 PM, Bote Man <bote_radio@botecomm.com> wrote:
Better still, its modern version on Confluence:
https://freeswitch.org/confluence/display/FREESWITCH/mod_local_stream#mod_lo... <https://freeswitch.org/confluence/display/FREESWITCH/mod_local_stream#mod_local_stream-ExecutionParameters>
J
--- Bote
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@gmail.com <mailto:ssinyagin@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@kavun.ch <mailto:lists@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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@kavun.ch <mailto:lists@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@jerris.com <mailto:mike@jerris.com>> wrote:
use whatever sound file you want as your ringback?
On Jan 14, 2016, at 6:42 AM, Emrah <lists@kavun.ch <mailto:lists@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto:FreeSWITCH-users@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto:FreeSWITCH-users@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Sorry, about this message I meant executing the “ring_ready” app and not the “ringback” app.
On Jan 14, 2016, at 8:41 PM, Emrah <lists@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@gmail.com <mailto:ssinyagin@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@kavun.ch <mailto:lists@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@jerris.com <mailto:mike@jerris.com>> wrote:
use whatever sound file you want as your ringback?
On Jan 14, 2016, at 6:42 AM, Emrah <lists@kavun.ch <mailto:lists@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto:FreeSWITCH-users@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto:FreeSWITCH-users@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@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@kavun.ch <mailto:lists@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@jerris.com <mailto:mike@jerris.com>> wrote:
use whatever sound file you want as your ringback?
On Jan 14, 2016, at 6:42 AM, Emrah <lists@kavun.ch <mailto:lists@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto:FreeSWITCH-users@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto:FreeSWITCH-users@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@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@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@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@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@ccs.covici.com
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@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@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@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@kavun.ch <mailto:lists@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@jerris.com <mailto:mike@jerris.com>> wrote:
use whatever sound file you want as your ringback?
On Jan 14, 2016, at 6:42 AM, Emrah <lists@kavun.ch <mailto: lists@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto: FreeSWITCH-users@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto: FreeSWITCH-users@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@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@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@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@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@ccs.covici.com
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Ringback is played back only when FreeSWITCH starts an outbound channel - during the bridge command, for example. What Enrah wants, is to play the early media while the dialplan execution goes on, but before the call is bridged. I tried the following sequence, but it didn't work either: the next command after sleep() was never executed, because the originator timed out after 20 seconds, and the audio file was played during these 20 seconds: <extension name="test1"> <condition field="destination_number" expression="^test1$"> <action application="pre_answer"/> <action application="ring_ready"/> <action application="set" data="api_result=${bgapi(uuid_broadcast ${uuid} /opt/sound/ITU-T_P_50_BRITISH_ENGLISH.wav)}"/> <action application="sleep" data="10000"/> <action application="set" data="api_result=${uuid_break(${uuid} all)}"/> <action application="answer"/> <action application="playback" data="ivr/ivr-welcome.wav"/> <action application="sleep" data="1000"/> <action application="hangup"/> </condition> </extension> so, it looks like it needs an external application talking over ESL. On Thu, Jan 14, 2016 at 4:26 PM, Michael Jerris <mike@jerris.com> wrote:
use whatever sound file you want as your ringback?
On Jan 14, 2016, at 6:42 AM, Emrah <lists@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thank you to all for your valuable inputs. See? At first it looks super trivial! And I think it should be. Begin troll mode With Asterisk, using MusicOnHold or Ringing does exactly that. End troll mode I will not give up. I don’t want to result to external programming for something like this, although using a little lua script sounds appealing. If I get it working like I want I’ll post something here. Ciao!
On Jan 15, 2016, at 2:54 AM, Stanislav Sinyagin <ssinyagin@gmail.com> wrote:
Ringback is played back only when FreeSWITCH starts an outbound channel - during the bridge command, for example. What Enrah wants, is to play the early media while the dialplan execution goes on, but before the call is bridged.
I tried the following sequence, but it didn't work either: the next command after sleep() was never executed, because the originator timed out after 20 seconds, and the audio file was played during these 20 seconds:
<extension name="test1"> <condition field="destination_number" expression="^test1$"> <action application="pre_answer"/> <action application="ring_ready"/> <action application="set" data="api_result=${bgapi(uuid_broadcast ${uuid} /opt/sound/ITU-T_P_50_BRITISH_ENGLISH.wav)}"/> <action application="sleep" data="10000"/> <action application="set" data="api_result=${uuid_break(${uuid} all)}"/> <action application="answer"/> <action application="playback" data="ivr/ivr-welcome.wav"/> <action application="sleep" data="1000"/> <action application="hangup"/> </condition> </extension>
so, it looks like it needs an external application talking over ESL.
On Thu, Jan 14, 2016 at 4:26 PM, Michael Jerris <mike@jerris.com <mailto:mike@jerris.com>> wrote: use whatever sound file you want as your ringback?
On Jan 14, 2016, at 6:42 AM, Emrah <lists@kavun.ch <mailto:lists@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto:FreeSWITCH-users@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Question: It’s not very sexy, but how about parking the call? I can play whatever I want while the call is parked and take my time in doing whatever I need to do. The question then becomes how to keep a trail of the UUID, transfer it to the right extension and retain codec configs as well as set variables? What are your thoughts?
On Jan 15, 2016, at 7:53 AM, Emrah <lists@kavun.ch> wrote:
Thank you to all for your valuable inputs. See? At first it looks super trivial! And I think it should be. Begin troll mode With Asterisk, using MusicOnHold or Ringing does exactly that. End troll mode
I will not give up. I don’t want to result to external programming for something like this, although using a little lua script sounds appealing.
If I get it working like I want I’ll post something here.
Ciao!
On Jan 15, 2016, at 2:54 AM, Stanislav Sinyagin <ssinyagin@gmail.com <mailto:ssinyagin@gmail.com>> wrote:
Ringback is played back only when FreeSWITCH starts an outbound channel - during the bridge command, for example. What Enrah wants, is to play the early media while the dialplan execution goes on, but before the call is bridged.
I tried the following sequence, but it didn't work either: the next command after sleep() was never executed, because the originator timed out after 20 seconds, and the audio file was played during these 20 seconds:
<extension name="test1"> <condition field="destination_number" expression="^test1$"> <action application="pre_answer"/> <action application="ring_ready"/> <action application="set" data="api_result=${bgapi(uuid_broadcast ${uuid} /opt/sound/ITU-T_P_50_BRITISH_ENGLISH.wav)}"/> <action application="sleep" data="10000"/> <action application="set" data="api_result=${uuid_break(${uuid} all)}"/> <action application="answer"/> <action application="playback" data="ivr/ivr-welcome.wav"/> <action application="sleep" data="1000"/> <action application="hangup"/> </condition> </extension>
so, it looks like it needs an external application talking over ESL.
On Thu, Jan 14, 2016 at 4:26 PM, Michael Jerris <mike@jerris.com <mailto:mike@jerris.com>> wrote: use whatever sound file you want as your ringback?
On Jan 14, 2016, at 6:42 AM, Emrah <lists@kavun.ch <mailto:lists@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto:FreeSWITCH-users@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I would suggest using two FreeSWITCH boxes: the SBC gets the call, bridges it to the core server, and plays its own ringback while the core server processes the call. You can also merge them together in one box, just by bridging to "sofia/external/new_extension@SERVERIP:5080" On Fri, Jan 15, 2016 at 8:10 AM, Emrah <lists@kavun.ch> wrote:
Question: It’s not very sexy, but how about parking the call? I can play whatever I want while the call is parked and take my time in doing whatever I need to do. The question then becomes how to keep a trail of the UUID, transfer it to the right extension and retain codec configs as well as set variables?
What are your thoughts?
On Jan 15, 2016, at 7:53 AM, Emrah <lists@kavun.ch> wrote:
Thank you to all for your valuable inputs. See? At first it looks super trivial! And I think it should be. Begin troll mode With Asterisk, using MusicOnHold or Ringing does exactly that. End troll mode
I will not give up. I don’t want to result to external programming for something like this, although using a little lua script sounds appealing.
If I get it working like I want I’ll post something here.
Ciao!
On Jan 15, 2016, at 2:54 AM, Stanislav Sinyagin <ssinyagin@gmail.com> wrote:
Ringback is played back only when FreeSWITCH starts an outbound channel - during the bridge command, for example. What Enrah wants, is to play the early media while the dialplan execution goes on, but before the call is bridged.
I tried the following sequence, but it didn't work either: the next command after sleep() was never executed, because the originator timed out after 20 seconds, and the audio file was played during these 20 seconds:
<extension name="test1"> <condition field="destination_number" expression="^test1$"> <action application="pre_answer"/> <action application="ring_ready"/> <action application="set" data="api_result=${bgapi(uuid_broadcast ${uuid} /opt/sound/ITU-T_P_50_BRITISH_ENGLISH.wav)}"/> <action application="sleep" data="10000"/> <action application="set" data="api_result=${uuid_break(${uuid} all)}"/> <action application="answer"/> <action application="playback" data="ivr/ivr-welcome.wav"/> <action application="sleep" data="1000"/> <action application="hangup"/> </condition> </extension>
so, it looks like it needs an external application talking over ESL.
On Thu, Jan 14, 2016 at 4:26 PM, Michael Jerris <mike@jerris.com> wrote:
use whatever sound file you want as your ringback?
On Jan 14, 2016, at 6:42 AM, Emrah <lists@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Just to have some ringback? Wow that sounds like it would be a little over the top. In that case I could just bridge one call onto another extension with the loopback channel. That would effectively play a ringback. But this isn’t just a question of ringback. the bottom line is that there is no application to play something while allowing dial plan processing and I find that to be a pity. Not everything should resort in coding in external apps. And not something that is as trivial as this. there are apps like “curl” or “httpapi” that can be executed from the dialplan and they exist for a reason. It would be nice to allow something to be played back while we carry on executing a few dial plan operations. E
On Jan 15, 2016, at 9:11 AM, Stanislav Sinyagin <ssinyagin@gmail.com> wrote:
I would suggest using two FreeSWITCH boxes: the SBC gets the call, bridges it to the core server, and plays its own ringback while the core server processes the call. You can also merge them together in one box, just by bridging to "sofia/external/new_extension@SERVERIP:5080"
On Fri, Jan 15, 2016 at 8:10 AM, Emrah <lists@kavun.ch <mailto:lists@kavun.ch>> wrote: Question: It’s not very sexy, but how about parking the call? I can play whatever I want while the call is parked and take my time in doing whatever I need to do. The question then becomes how to keep a trail of the UUID, transfer it to the right extension and retain codec configs as well as set variables?
What are your thoughts?
On Jan 15, 2016, at 7:53 AM, Emrah <lists@kavun.ch <mailto:lists@kavun.ch>> wrote:
Thank you to all for your valuable inputs. See? At first it looks super trivial! And I think it should be. Begin troll mode With Asterisk, using MusicOnHold or Ringing does exactly that. End troll mode
I will not give up. I don’t want to result to external programming for something like this, although using a little lua script sounds appealing.
If I get it working like I want I’ll post something here.
Ciao!
On Jan 15, 2016, at 2:54 AM, Stanislav Sinyagin <ssinyagin@gmail.com <mailto:ssinyagin@gmail.com>> wrote:
Ringback is played back only when FreeSWITCH starts an outbound channel - during the bridge command, for example. What Enrah wants, is to play the early media while the dialplan execution goes on, but before the call is bridged.
I tried the following sequence, but it didn't work either: the next command after sleep() was never executed, because the originator timed out after 20 seconds, and the audio file was played during these 20 seconds:
<extension name="test1"> <condition field="destination_number" expression="^test1$"> <action application="pre_answer"/> <action application="ring_ready"/> <action application="set" data="api_result=${bgapi(uuid_broadcast ${uuid} /opt/sound/ITU-T_P_50_BRITISH_ENGLISH.wav)}"/> <action application="sleep" data="10000"/> <action application="set" data="api_result=${uuid_break(${uuid} all)}"/> <action application="answer"/> <action application="playback" data="ivr/ivr-welcome.wav"/> <action application="sleep" data="1000"/> <action application="hangup"/> </condition> </extension>
so, it looks like it needs an external application talking over ESL.
On Thu, Jan 14, 2016 at 4:26 PM, Michael Jerris <mike@jerris.com <mailto:mike@jerris.com>> wrote: use whatever sound file you want as your ringback?
On Jan 14, 2016, at 6:42 AM, Emrah <lists@kavun.ch <mailto:lists@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto:FreeSWITCH-users@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto:FreeSWITCH-users@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@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto:FreeSWITCH-users@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
The dialplan exists to route calls, it is not a script processor. It is designed to handle common use cases. FreeSWITCH apps that play media to the caller are typically blocking, so they wait for the audio file to play before proceeding and sometimes wait for a response from the caller. What you want to do falls outside the design of the XML dialplan, so a script would likely be the best approach since this gives you much more control. Stanislav’s suggestion of a script that commands FS via ESL sounds like a good approach to me since you are free to write in the language of your choice. Your design sounds familiar so it might be worth searching these mailing list archives for a similar solution. Also, there might be some wisdom captured on this Confluence page https://freeswitch.org/confluence/display/FREESWITCH/Holding+Bin#HoldingBin-... Hope this helps. --- Bote FreeSWITCH Docs Janitor <http://freeswitch.org/confluence> http://freeswitch.org/confluence From: Emrah Sent: Friday, 15 January, 2016 06:00 Subject: Re: [Freeswitch-users] Ringback, MOH or file playback while executing dial plan instructions Just to have some ringback? Wow that sounds like it would be a little over the top. In that case I could just bridge one call onto another extension with the loopback channel. That would effectively play a ringback. But this isn’t just a question of ringback. the bottom line is that there is no application to play something while allowing dial plan processing and I find that to be a pity. Not everything should resort in coding in external apps. And not something that is as trivial as this. there are apps like “curl” or “httpapi” that can be executed from the dialplan and they exist for a reason. It would be nice to allow something to be played back while we carry on executing a few dial plan operations. E On Jan 15, 2016, at 9:11 AM, Stanislav Sinyagin <ssinyagin@gmail.com> wrote: I would suggest using two FreeSWITCH boxes: the SBC gets the call, bridges it to the core server, and plays its own ringback while the core server processes the call. You can also merge them together in one box, just by bridging to "sofia/external/new_extension@SERVERIP:5080" On Fri, Jan 15, 2016 at 8:10 AM, Emrah <lists@kavun.ch> wrote: Question: It’s not very sexy, but how about parking the call? I can play whatever I want while the call is parked and take my time in doing whatever I need to do. The question then becomes how to keep a trail of the UUID, transfer it to the right extension and retain codec configs as well as set variables? What are your thoughts? On Jan 15, 2016, at 7:53 AM, Emrah <lists@kavun.ch> wrote: Thank you to all for your valuable inputs. See? At first it looks super trivial! And I think it should be. Begin troll mode With Asterisk, using MusicOnHold or Ringing does exactly that. End troll mode I will not give up. I don’t want to result to external programming for something like this, although using a little lua script sounds appealing. If I get it working like I want I’ll post something here. Ciao! On Jan 15, 2016, at 2:54 AM, Stanislav Sinyagin <ssinyagin@gmail.com> wrote: Ringback is played back only when FreeSWITCH starts an outbound channel - during the bridge command, for example. What Enrah wants, is to play the early media while the dialplan execution goes on, but before the call is bridged. I tried the following sequence, but it didn't work either: the next command after sleep() was never executed, because the originator timed out after 20 seconds, and the audio file was played during these 20 seconds: <extension name="test1"> <condition field="destination_number" expression="^test1$"> <action application="pre_answer"/> <action application="ring_ready"/> <action application="set" data="api_result=${bgapi(uuid_broadcast ${uuid} /opt/sound/ITU-T_P_50_BRITISH_ENGLISH.wav)}"/> <action application="sleep" data="10000"/> <action application="set" data="api_result=${uuid_break(${uuid} all)}"/> <action application="answer"/> <action application="playback" data="ivr/ivr-welcome.wav"/> <action application="sleep" data="1000"/> <action application="hangup"/> </condition> </extension> so, it looks like it needs an external application talking over ESL. On Thu, Jan 14, 2016 at 4:26 PM, Michael Jerris <mike@jerris.com> wrote: use whatever sound file you want as your ringback?
On Jan 14, 2016, at 6:42 AM, Emrah <lists@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.
Guys, We all love FS and I’m assuming you’re only trying to defend what’s in place and the logic behind it. Everybody that’s contributed to this thread also seemed to agree that my scenario is very trivial. I don’t think that being able to execute certain applications and allow the dial plan to continue execution is out of the scope of the dial plan. Knowing that one of the instructions could be to execute a script. I read that it could potentially create conflicts if for instance the channel was bridged somewhere while running a playback from a previous instruction. To me, this is like many applications will automatically trigger a pre_answer if necessary. The same could be evaluated for ongoing streams on the channel and stop it when necessary before executing another application that requires to stream to the channel. So out of common sens, I invite you to respond to this once again and advise on whether this should be a feature request or not. I’m actually still convinced that FS has a way of accomplishing this, natively… All the best, E
On Jan 15, 2016, at 12:20 PM, Bote Man <bote_radio@botecomm.com> wrote:
The dialplan exists to route calls, it is not a script processor. It is designed to handle common use cases. FreeSWITCH apps that play media to the caller are typically blocking, so they wait for the audio file to play before proceeding and sometimes wait for a response from the caller.
What you want to do falls outside the design of the XML dialplan, so a script would likely be the best approach since this gives you much more control. Stanislav’s suggestion of a script that commands FS via ESL sounds like a good approach to me since you are free to write in the language of your choice.
Your design sounds familiar so it might be worth searching these mailing list archives for a similar solution.
Also, there might be some wisdom captured on this Confluence page https://freeswitch.org/confluence/display/FREESWITCH/Holding+Bin#HoldingBin-... <https://freeswitch.org/confluence/display/FREESWITCH/Holding+Bin#HoldingBin-AttendedTransfersandVoiceMail>
Hope this helps.
--- Bote
FreeSWITCH Docs Janitor http://freeswitch.org/confluence <http://freeswitch.org/confluence>
From: Emrah Sent: Friday, 15 January, 2016 06:00 Subject: Re: [Freeswitch-users] Ringback, MOH or file playback while executing dial plan instructions
Just to have some ringback? Wow that sounds like it would be a little over the top. In that case I could just bridge one call onto another extension with the loopback channel. That would effectively play a ringback. But this isn’t just a question of ringback. the bottom line is that there is no application to play something while allowing dial plan processing and I find that to be a pity. Not everything should resort in coding in external apps. And not something that is as trivial as this. there are apps like “curl” or “httpapi” that can be executed from the dialplan and they exist for a reason. It would be nice to allow something to be played back while we carry on executing a few dial plan operations.
E
On Jan 15, 2016, at 9:11 AM, Stanislav Sinyagin <ssinyagin@gmail.com <mailto:ssinyagin@gmail.com>> wrote:
I would suggest using two FreeSWITCH boxes: the SBC gets the call, bridges it to the core server, and plays its own ringback while the core server processes the call. You can also merge them together in one box, just by bridging to "sofia/external/new_extension@SERVERIP:5080"
On Fri, Jan 15, 2016 at 8:10 AM, Emrah <lists@kavun.ch <mailto:lists@kavun.ch>> wrote: Question: It’s not very sexy, but how about parking the call? I can play whatever I want while the call is parked and take my time in doing whatever I need to do. The question then becomes how to keep a trail of the UUID, transfer it to the right extension and retain codec configs as well as set variables?
What are your thoughts?
On Jan 15, 2016, at 7:53 AM, Emrah <lists@kavun.ch <mailto:lists@kavun.ch>> wrote:
Thank you to all for your valuable inputs. See? At first it looks super trivial! And I think it should be. Begin troll mode With Asterisk, using MusicOnHold or Ringing does exactly that. End troll mode
I will not give up. I don’t want to result to external programming for something like this, although using a little lua script sounds appealing.
If I get it working like I want I’ll post something here.
Ciao!
On Jan 15, 2016, at 2:54 AM, Stanislav Sinyagin <ssinyagin@gmail.com <mailto:ssinyagin@gmail.com>> wrote:
Ringback is played back only when FreeSWITCH starts an outbound channel - during the bridge command, for example. What Enrah wants, is to play the early media while the dialplan execution goes on, but before the call is bridged.
I tried the following sequence, but it didn't work either: the next command after sleep() was never executed, because the originator timed out after 20 seconds, and the audio file was played during these 20 seconds:
<extension name="test1"> <condition field="destination_number" expression="^test1$"> <action application="pre_answer"/> <action application="ring_ready"/> <action application="set" data="api_result=${bgapi(uuid_broadcast ${uuid} /opt/sound/ITU-T_P_50_BRITISH_ENGLISH.wav)}"/> <action application="sleep" data="10000"/> <action application="set" data="api_result=${uuid_break(${uuid} all)}"/> <action application="answer"/> <action application="playback" data="ivr/ivr-welcome.wav"/> <action application="sleep" data="1000"/> <action application="hangup"/> </condition> </extension>
so, it looks like it needs an external application talking over ESL.
On Thu, Jan 14, 2016 at 4:26 PM, Michael Jerris <mike@jerris.com <mailto:mike@jerris.com>> wrote: use whatever sound file you want as your ringback?
On Jan 14, 2016, at 6:42 AM, Emrah <lists@kavun.ch <mailto:lists@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (7)
-
Abaci B
-
Bote Man
-
covici@ccs.covici.com
-
Emrah
-
Mario G
-
Michael Jerris
-
Stanislav Sinyagin