<html><head></head><body 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.&nbsp;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">&lt;<a href="mailto:mario_fs@mgtech.com" target="_blank">mario_fs@mgtech.com</a>&gt;</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>
&gt; I don't quite understand what you are trying to do here.<br>
&gt; mod_local_stream plays audio in a loop constantly with chime-ins<br>
&gt; (announcements) set to play periodically. If you need something to<br>
&gt; play from the beginning for a certain amount of time, you need to use<br>
&gt; something other than mod_local_stream.<br>
&gt;<br>
&gt;<br>
&gt;&gt; On Wed, Feb 6, 2013 at 9:04 AM, Mario G &lt;<a href="mailto:mario_fs@mgtech.com">mario_fs@mgtech.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Could not find anything in the wiki and this may not be possible but... I<br>
&gt;&gt;&gt; have early media with instructions, is has voice, ring, voice, music. I want<br>
&gt;&gt;&gt; to change the ring to music but I could not find a way to limit the time the<br>
&gt;&gt;&gt; music plays. See the second example, I would like to limit the first moh to<br>
&gt;&gt;&gt; a maximum time. If not possible, is this a "bounty" enhancement? Thanks for<br>
&gt;&gt;&gt; any help.<br>
&gt;&gt;&gt; Mario G<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Currently:<br>
&gt;&gt;&gt; &lt;action application="set"<br>
&gt;&gt;&gt; data="ringback=file_string://${lua_ring1}!tone_stream://${us-ring};loops=3!file_string://${lua_ring2}!local_stream://moh"/&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Would Like (add something to limit the first moh):<br>
&gt;&gt;&gt; &lt;action application="set"<br>
&gt;&gt;&gt; data="ringback=file_string://${lua_ring1}!local_stream://moh!file_string://${lua_ring2}!local_stream://moh"/&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ______________________________________________________________________<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <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>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>http://www.freeswitchsolutions.com<br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>http://www.cudatel.com<br><br>Official FreeSWITCH Sites<br>http://www.freeswitch.org<br>http://wiki.freeswitch.org<br>http://www.cluecon.com<br><br>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></div></body></html>