Can local_stream MOH have a time limit/max duration?
Could not find anything in the wiki and this may not be possible but... I have early media with instructions, is has voice, ring, voice, music. I want to change the ring to music but I could not find a way to limit the time the music plays. See the second example, I would like to limit the first moh to a maximum time. If not possible, is this a "bounty" enhancement? Thanks for any help. Mario G Currently: <action application="set" data="ringback=file_string://${lua_ring1}!tone_stream://${us-ring};loops=3!file_string://${lua_ring2}!local_stream://moh"/> Would Like (add something to limit the first moh): <action application="set" data="ringback=file_string://${lua_ring1}!local_stream://moh!file_string://${lua_ring2}!local_stream://moh"/>
The ringback will play until the call is answered or until the call_timeout value is met and the call moves on in the dialplan. You can probably just use call_timeout to tell the call to move on after x number of seconds. -MC On Wed, Feb 6, 2013 at 9:04 AM, Mario G <mario_fs@mgtech.com> wrote:
Could not find anything in the wiki and this may not be possible but... I have early media with instructions, is has voice, ring, voice, music. I want to change the ring to music but I could not find a way to limit the time the music plays. See the second example, I would like to limit the first moh to a maximum time. If not possible, is this a "bounty" enhancement? Thanks for any help. Mario G
Currently: <action application="set" data= "ringback=file_string://${lua_ring1}!tone_stream://${us-ring};loops=3!file_string://${lua_ring2}!local_stream://moh" />
Would Like (add something to limit the first moh): <action application="set" data="ringback=file_string://${lua_ring1}! local_stream://moh!file_string://${lua_ring2}!local_stream://moh"/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
I don't quite understand what you are trying to do here. mod_local_stream plays audio in a loop constantly with chime-ins (announcements) set to play periodically. If you need something to play from the beginning for a certain amount of time, you need to use something other than mod_local_stream.
On Wed, Feb 6, 2013 at 9:04 AM, Mario G <mario_fs@mgtech.com> wrote:
Could not find anything in the wiki and this may not be possible but... I have early media with instructions, is has voice, ring, voice, music. I want to change the ring to music but I could not find a way to limit the time the music plays. See the second example, I would like to limit the first moh to a maximum time. If not possible, is this a "bounty" enhancement? Thanks for any help. Mario G
Currently: <action application="set" data="ringback=file_string://${lua_ring1}!tone_stream://${us-ring};loops=3!file_string://${lua_ring2}!local_stream://moh"/>
Would Like (add something to limit the first moh): <action application="set" data="ringback=file_string://${lua_ring1}!local_stream://moh!file_string://${lua_ring2}!local_stream://moh"/>
______________________________________________________________________
I looked into chime-ins, but it only chimes in at fixed intervals, and it was not flexible enough for true customization. I could not find anything else on the wiki that would play moh (or any other file) for a specific time. See my previous post for a details of how it works and what I wanted to do. Thanks. Mario G On Feb 8, 2013, at 5:48 AM, Vik Killa wrote:
I don't quite understand what you are trying to do here. mod_local_stream plays audio in a loop constantly with chime-ins (announcements) set to play periodically. If you need something to play from the beginning for a certain amount of time, you need to use something other than mod_local_stream.
On Wed, Feb 6, 2013 at 9:04 AM, Mario G <mario_fs@mgtech.com> wrote:
Could not find anything in the wiki and this may not be possible but... I have early media with instructions, is has voice, ring, voice, music. I want to change the ring to music but I could not find a way to limit the time the music plays. See the second example, I would like to limit the first moh to a maximum time. If not possible, is this a "bounty" enhancement? Thanks for any help. Mario G
Currently: <action application="set" data="ringback=file_string://${lua_ring1}!tone_stream://${us-ring};loops=3!file_string://${lua_ring2}!local_stream://moh"/>
Would Like (add something to limit the first moh): <action application="set" data="ringback=file_string://${lua_ring1}!local_stream://moh!file_string://${lua_ring2}!local_stream://moh"/>
______________________________________________________________________
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
For #2 use transfer_ringback channel variable and set it to MOH and it should work the same way, i.e. instead of ringing the caller will hear music. -MC On Fri, Feb 8, 2013 at 8:55 AM, Mario G <mario_fs@mgtech.com> wrote:
I looked into chime-ins, but it only chimes in at fixed intervals, and it was not flexible enough for true customization. I could not find anything else on the wiki that would play moh (or any other file) for a specific time. See my previous post for a details of how it works and what I wanted to do. Thanks. Mario G
On Feb 8, 2013, at 5:48 AM, Vik Killa wrote:
I don't quite understand what you are trying to do here. mod_local_stream plays audio in a loop constantly with chime-ins (announcements) set to play periodically. If you need something to play from the beginning for a certain amount of time, you need to use something other than mod_local_stream.
On Wed, Feb 6, 2013 at 9:04 AM, Mario G <mario_fs@mgtech.com> wrote:
Could not find anything in the wiki and this may not be possible
but... I
have early media with instructions, is has voice, ring, voice, music. I want to change the ring to music but I could not find a way to limit the time the music plays. See the second example, I would like to limit the first moh to a maximum time. If not possible, is this a "bounty" enhancement? Thanks for any help. Mario G
Currently: <action application="set"
data="ringback=file_string://${lua_ring1}!tone_stream://${us-ring};loops=3!file_string://${lua_ring2}!local_stream://moh"/>
Would Like (add something to limit the first moh): <action application="set"
data="ringback=file_string://${lua_ring1}!local_stream://moh!file_string://${lua_ring2}!local_stream://moh"/>
______________________________________________________________________
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
I tried a few things with transfer_ringaback but no dice. The wiki also states transfer_ringback is only for after the call is answered, use ringback for early media, which is what I need it for. i looked at source code but did not find anything that would allow limiting moh duration, bummer. Thanks. Mario G On Feb 11, 2013, at 12:57 PM, Michael Collins wrote:
For #2 use transfer_ringback channel variable and set it to MOH and it should work the same way, i.e. instead of ringing the caller will hear music.
-MC
On Fri, Feb 8, 2013 at 8:55 AM, Mario G <mario_fs@mgtech.com> wrote: I looked into chime-ins, but it only chimes in at fixed intervals, and it was not flexible enough for true customization. I could not find anything else on the wiki that would play moh (or any other file) for a specific time. See my previous post for a details of how it works and what I wanted to do. Thanks. Mario G
On Feb 8, 2013, at 5:48 AM, Vik Killa wrote:
I don't quite understand what you are trying to do here. mod_local_stream plays audio in a loop constantly with chime-ins (announcements) set to play periodically. If you need something to play from the beginning for a certain amount of time, you need to use something other than mod_local_stream.
On Wed, Feb 6, 2013 at 9:04 AM, Mario G <mario_fs@mgtech.com> wrote:
Could not find anything in the wiki and this may not be possible but... I have early media with instructions, is has voice, ring, voice, music. I want to change the ring to music but I could not find a way to limit the time the music plays. See the second example, I would like to limit the first moh to a maximum time. If not possible, is this a "bounty" enhancement? Thanks for any help. Mario G
Currently: <action application="set" data="ringback=file_string://${lua_ring1}!tone_stream://${us-ring};loops=3!file_string://${lua_ring2}!local_stream://moh"/>
Would Like (add something to limit the first moh): <action application="set" data="ringback=file_string://${lua_ring1}!local_stream://moh!file_string://${lua_ring2}!local_stream://moh"/>
______________________________________________________________________
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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 updated the wiki with a new Execution Parameters section: http://wiki.freeswitch.org/wiki/Mod_local_stream#Execution_Parameters . Needless to say this only works with the latest HEAD for now. Thanks to Anthony! Mario G I am using this now: <action application="set" data="ringback=file_string://${lua_ring1}!{timeout=18000}local_stream://moh!file_string://${lua_ring2}!local_stream://moh"/> On Feb 12, 2013, at 10:43 AM, Mario G wrote:
I tried a few things with transfer_ringaback but no dice. The wiki also states transfer_ringback is only for after the call is answered, use ringback for early media, which is what I need it for. i looked at source code but did not find anything that would allow limiting moh duration, bummer. Thanks. Mario G
On Feb 11, 2013, at 12:57 PM, Michael Collins wrote:
For #2 use transfer_ringback channel variable and set it to MOH and it should work the same way, i.e. instead of ringing the caller will hear music.
-MC
On Fri, Feb 8, 2013 at 8:55 AM, Mario G <mario_fs@mgtech.com> wrote: I looked into chime-ins, but it only chimes in at fixed intervals, and it was not flexible enough for true customization. I could not find anything else on the wiki that would play moh (or any other file) for a specific time. See my previous post for a details of how it works and what I wanted to do. Thanks. Mario G
On Feb 8, 2013, at 5:48 AM, Vik Killa wrote:
I don't quite understand what you are trying to do here. mod_local_stream plays audio in a loop constantly with chime-ins (announcements) set to play periodically. If you need something to play from the beginning for a certain amount of time, you need to use something other than mod_local_stream.
On Wed, Feb 6, 2013 at 9:04 AM, Mario G <mario_fs@mgtech.com> wrote:
Could not find anything in the wiki and this may not be possible but... I have early media with instructions, is has voice, ring, voice, music. I want to change the ring to music but I could not find a way to limit the time the music plays. See the second example, I would like to limit the first moh to a maximum time. If not possible, is this a "bounty" enhancement? Thanks for any help. Mario G
Currently: <action application="set" data="ringback=file_string://${lua_ring1}!tone_stream://${us-ring};loops=3!file_string://${lua_ring2}!local_stream://moh"/>
Would Like (add something to limit the first moh): <action application="set" data="ringback=file_string://${lua_ring1}!local_stream://moh!file_string://${lua_ring2}!local_stream://moh"/>
______________________________________________________________________
_________________________________________________________________________
Update, this also works with file_string: Needless to say this only works with the latest HEAD for now. Thanks to Anthony! Mario G I updated the wiki with a new Execution Parameters section: http://wiki.freeswitch.org/wiki/Mod_local_stream#Execution_Parameters . I am using this now: <action application="set" data="ringback=file_string://${lua_ring1}!{timeout=18000}local_stream://moh!file_string://${lua_ring2}!local_stream://moh"/> I updated the wiki with a new Execution Parameters section: http://wiki.freeswitch.org/wiki/File_string#Execution_Parameters. This works great: <action application="playback" data="{timeout=10000}file_string://${sound_dir}/music/8000/music1.wav"/>
On Feb 12, 2013, at 10:43 AM, Mario G wrote:
I tried a few things with transfer_ringaback but no dice. The wiki also states transfer_ringback is only for after the call is answered, use ringback for early media, which is what I need it for. i looked at source code but did not find anything that would allow limiting moh duration, bummer. Thanks. Mario G
On Feb 11, 2013, at 12:57 PM, Michael Collins wrote:
For #2 use transfer_ringback channel variable and set it to MOH and it should work the same way, i.e. instead of ringing the caller will hear music.
-MC
On Fri, Feb 8, 2013 at 8:55 AM, Mario G <mario_fs@mgtech.com> wrote: I looked into chime-ins, but it only chimes in at fixed intervals, and it was not flexible enough for true customization. I could not find anything else on the wiki that would play moh (or any other file) for a specific time. See my previous post for a details of how it works and what I wanted to do. Thanks. Mario G
On Feb 8, 2013, at 5:48 AM, Vik Killa wrote:
I don't quite understand what you are trying to do here. mod_local_stream plays audio in a loop constantly with chime-ins (announcements) set to play periodically. If you need something to play from the beginning for a certain amount of time, you need to use something other than mod_local_stream.
On Wed, Feb 6, 2013 at 9:04 AM, Mario G <mario_fs@mgtech.com> wrote:
Could not find anything in the wiki and this may not be possible but... I have early media with instructions, is has voice, ring, voice, music. I want to change the ring to music but I could not find a way to limit the time the music plays. See the second example, I would like to limit the first moh to a maximum time. If not possible, is this a "bounty" enhancement? Thanks for any help. Mario G
Currently: <action application="set" data="ringback=file_string://${lua_ring1}!tone_stream://${us-ring};loops=3!file_string://${lua_ring2}!local_stream://moh"/>
Would Like (add something to limit the first moh): <action application="set" data="ringback=file_string://${lua_ring1}!local_stream://moh!file_string://${lua_ring2}!local_stream://moh"/>
______________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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 do use call_timeout, see below. I want to use moh twice in the ringback with an intervening message. So this means the first moh must be limited to a specific time. Here is what the caller hears for the ringback now: 1. Custom greeting to caller. 2. Ring for 45 seconds <--- I want to replace this with music instead, but limit moh duration to 45 seconds just here. 3. Custom 2nd greeting telling caller to please wait while call is forwarded. 4. moh for 20 seconds (csall_timeout completes if no answer) call times out 5. Custom please leave a message This has been working fine using the ringback below (I use LUA to build the customized greetings based on caller ID), it would just be nice to replace #2 with music but it needs to end so the ringback sequence can continue. Mario G On Feb 7, 2013, at 3:42 PM, Michael Collins wrote:
The ringback will play until the call is answered or until the call_timeout value is met and the call moves on in the dialplan. You can probably just use call_timeout to tell the call to move on after x number of seconds. -MC
On Wed, Feb 6, 2013 at 9:04 AM, Mario G <mario_fs@mgtech.com> wrote: Could not find anything in the wiki and this may not be possible but... I have early media with instructions, is has voice, ring, voice, music. I want to change the ring to music but I could not find a way to limit the time the music plays. See the second example, I would like to limit the first moh to a maximum time. If not possible, is this a "bounty" enhancement? Thanks for any help. Mario G
Currently: <action application="set" data="ringback=file_string://${lua_ring1}!tone_stream://${us-ring};loops=3!file_string://${lua_ring2}!local_stream://moh"/>
Would Like (add something to limit the first moh): <action application="set" data="ringback=file_string://${lua_ring1}!local_stream://moh!file_string://${lua_ring2}!local_stream://moh"/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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 (3)
-
Mario G
-
Michael Collins
-
Vik Killa