<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I updated the wiki with a new Execution Parameters section: <a href="http://wiki.freeswitch.org/wiki/Mod_local_stream#Execution_Parameters">http://wiki.freeswitch.org/wiki/Mod_local_stream#Execution_Parameters</a> . Needless to say this only works with the latest HEAD for now. Thanks to Anthony!</div><div>Mario G</div><div><br></div><div>I am using this now:</div><div><action application="set" data="ringback=file_string://${lua_ring1}!<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; ">{timeout=18000}</span>local_stream://moh!file_string://${lua_ring2}!local_stream://moh"/></div><br><div><div>On Feb 12, 2013, at 10:43 AM, Mario G wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I tried a few things with transfer_ringaback but no dice. The wiki also states transfer_ringback is only for <i>after the call is answered, use ringback for early media, </i>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.<div>Mario G<br><div><br><div><div>On Feb 11, 2013, at 12:57 PM, Michael Collins wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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.<div><br></div><div>-MC<br><br><div class="gmail_quote">On Fri, Feb 8, 2013 at 8:55 AM, Mario G <span dir="ltr"><<a href="mailto:mario_fs@mgtech.com" target="_blank">mario_fs@mgtech.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">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.<br>
<span class="HOEnZb"><font color="#888888">Mario G<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Feb 8, 2013, at 5:48 AM, Vik Killa wrote:<br>
<br>
> I don't quite understand what you are trying to do here.<br>
> mod_local_stream plays audio in a loop constantly with chime-ins<br>
> (announcements) set to play periodically. If you need something to<br>
> play from the beginning for a certain amount of time, you need to use<br>
> something other than mod_local_stream.<br>
><br>
><br>
>> On Wed, Feb 6, 2013 at 9:04 AM, Mario G <<a href="mailto:mario_fs@mgtech.com">mario_fs@mgtech.com</a>> wrote:<br>
>>><br>
>>> Could not find anything in the wiki and this may not be possible but... I<br>
>>> have early media with instructions, is has voice, ring, voice, music. I want<br>
>>> to change the ring to music but I could not find a way to limit the time the<br>
>>> music plays. See the second example, I would like to limit the first moh to<br>
>>> a maximum time. If not possible, is this a "bounty" enhancement? Thanks for<br>
>>> any help.<br>
>>> Mario G<br>
>>><br>
>>><br>
>>> Currently:<br>
>>> <action application="set"<br>
>>> data="ringback=file_string://${lua_ring1}!tone_stream://${us-ring};loops=3!file_string://${lua_ring2}!local_stream://moh"/><br>
>>><br>
>>> Would Like (add something to limit the first moh):<br>
>>> <action application="set"<br>
>>> data="ringback=file_string://${lua_ring1}!local_stream://moh!file_string://${lua_ring2}!local_stream://moh"/><br>
>>><br>
>>><br>
>>> ______________________________________________________________________<br>
><br>
> _________________________________________________________________________<br></div></div></blockquote></div></div></blockquote></div></div></div></div></blockquote></div><br></body></html>