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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</div>