Yes data :-) <br><br><div>checkout <a href="http://jira.freeswitch.org/browse/FS-3142">http://jira.freeswitch.org/browse/FS-3142</a> for resolution...</div><div><br><div class="gmail_quote">On Fri, Mar 11, 2011 at 6:04 PM, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="im">&lt;action application=&quot;set&quot; date=&quot;playback_timeout_sec=10&quot; /&gt;<br><br></div>

I assume you mean data=&quot;...&quot; not date=&quot;...&quot;?<br><br>-Steve<br><br></div><br><br><div class="gmail_quote"><div><div></div><div class="h5">

On 10 March 2011 20:21, Sidharth Kshatriya <span dir="ltr">&lt;<a href="mailto:sid.kshatriya@gmail.com" target="_blank">sid.kshatriya@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

<div><div></div><div class="h5">

<div>Dear All,</div><div><br></div>I am using a little known but very useful channel variable called &quot;playback_timeout_sec&quot;<div><br></div><div>In Lua if I do: session:setVariable(&quot;playback_timeout_sec&quot;, &quot;10&quot;)</div>





<div><br></div><div>and subsequently in a macro I have:</div><div><br></div><div>&lt;action function=&quot;play-file&quot; date=&quot;/some/filename.mp3&quot; /&gt;</div><div><br></div><div>Then the filename.mp3 stops playing automatically after 10 seconds. This is very useful if you want to play short excerpts of a file that could be very long.</div>





<div><br></div><div>But if I do:</div><div><br></div><div><div>&lt;action application=&quot;set&quot; date=&quot;playback_timeout_sec=10&quot; /&gt;</div><div><div>&lt;action function=&quot;play-file&quot; date=&quot;/some/filename.mp3&quot; /&gt;</div>





</div><div><div><br></div></div><div>My file does NOT stop playing after 10 seconds. This is weird given that &lt;action application=&quot;set&quot; .. /&gt; is doing exactly the same thing as session:setVariable() ... right?</div>





<div><br></div><div>My question</div><div>1. What could be the problem with application set?</div><div>2. Is there a way to automatically stop playback after a certain number of seconds for a file? (without doing tedious things like create a separate 10second version of an mp3 using ffmpeg etc.)</div>





<div><br></div><div>Thanks,</div><div><br></div><div>Sidharth</div>-- <br>Sidharth Kshatriya<br><a href="http://www.sidk.info" target="_blank">www.sidk.info</a><br><br>
</div>
<br></div></div><div class="im">_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></blockquote></div><br><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">

</div>
<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></blockquote></div><br><br clear="all"><br>-- <br>Sidharth Kshatriya<br><a href="http://www.sidk.info">www.sidk.info</a><br><br>
</div>