<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">This may help… I am sure it does what you want depending on where you put timeout. Look at my comments and my LUA code below.<div class=""><br class=""></div><div class="">The link is the doc I write up for timeout. When it was introduced I thought the timeout was for each file.<div class=""><a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_local_stream#mod_local_stream-ExecutionParameters" class="">https://freeswitch.org/confluence/display/FREESWITCH/mod_local_stream#mod_local_stream-ExecutionParameters</a></div><div class=""><br class=""></div><div class="">Also, here is an email I sent that comment implies each can have timeout. I also looked at my LUA program and my old comments also imply that but only use 1 timeout at this point.</div><div class=""><br class=""></div><div class=""><div class="">Here is how I construct a LUA variable to play multiple files in a ringback, syntax would be the same for your application. This is a complex one since it not only plays different files but sets a time limit for each:<div class=""><br class=""><div class=""><div class=""> ringback = "file_string://"..em1.."!{timeout="..moh1_timeout.."}local_stream://mohmv!file_string://"..em2.."!local_strea<a href="m://mohmv" class="">m://mohmv</a>”</div><div class=""><br class=""></div><div class=""><br class=""></div></div></div><div><blockquote type="cite" class=""><div class="">On Mar 25, 2016, at 9:48 AM, Michael Collins <<a href="mailto:msc@freeswitch.org" class="">msc@freeswitch.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Maybe you could do some tests and report back to the list. In switch_ivr_play_say.c there's a function called switch_ivr_play_file which is called by the playback dialplan app. In there it references a channel variable named playback_timeout_sec. Try setting that value prior to your playback app and see what happens. <div class=""><br class=""></div><div class="">Be sure to let us know how it goes. :)</div><div class=""><br class=""></div><div class="">-MSC</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Mar 24, 2016 at 8:28 AM, Nishad Musthafa <span dir="ltr" class=""><<a href="mailto:nishadmusthafa@gmail.com" target="_blank" class="">nishadmusthafa@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Hi, <div class=""><br class=""></div><div class="">From the wiki and through experimenting with FS, I know it's possible to playback multiple files using the playback_delimiter channel variable and then something like </div><div class=""><pre style="font-family: monospace, Courier; padding: 1em; border: 1px dashed rgb(47, 111, 171); line-height: 1.3em; font-size: 12.8px; background-color: rgb(249, 249, 249);" class=""> <!-- Delimiter is set by a var which also enables the parser -->
<action application="set" data="playback_delimiter=!"/>
<action application="set" data="playback_sleep_val=500"/>
<action application="playback" data="/ram/sr8k.wav!/ram/swimp.wav"/> </pre></div><div class="">It is also possible to set a timeout for a single file using </div><div class=""><pre style="font-family: monospace, Courier; padding: 1em; border: 1px dashed rgb(47, 111, 171); line-height: 1.3em; font-size: 12.8px; background-color: rgb(249, 249, 249);" class=""><action application="playback" data="{timeout=15000}file_string://${sound_dir}/music/8000/music1.wav"/></pre></div><div class="">Is it possible to merge the above two? I am looking at setting a single timeout for multiple files. Is this possible?</div><span class="HOEnZb"><font color="#888888" class=""><div class=""><br class=""></div><div class="">Nishad </div></font></span></div>
<br class="">_________________________________________________________________________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.org</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div><br class=""></div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></div></div></body></html>