<div dir="ltr">Hi Michael,<br><br>Thanks for pointing me to the channel variable. I tried that out. The variable works for the first in the set of delimiter separated urls. I even tried setting the channel variable twice to see if it would make the timeout happen on the first two urls. But that didn't happen. The timeout still occurred only on the first of the urls in the list. <br><br><br>Mario,<br><br>Thank you for your response. I was able to set a timeout for each url. However I wanted to see if I could do something like this<div><br></div><div> ringback = {timeout="..moh1_timeout.."} ("file_string://"..em1.."!local_stream://mohmv!file_string://"..em2.."!local_strea<a>m://mohmv</a>”)</div><div><br></div><div>That is, a timeout for the entire set of strings. Not really sure if that's possible or not and what the syntax is if it is possible. </div><div><br></div><div>Nishad</div><div><br><div class="gmail_quote"><div dir="ltr">On Fri, Mar 25, 2016 at 10:47 PM Mario G <<a href="mailto:mario_fs@mgtech.com" target="_blank">mario_fs@mgtech.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">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><br></div><div>The link is the doc I write up for timeout. When it was introduced I thought the timeout was for each file.<div><a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_local_stream#mod_local_stream-ExecutionParameters" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/mod_local_stream#mod_local_stream-ExecutionParameters</a></div><div><br></div><div>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><br></div><div><div>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><br><div><div> ringback = "file_string://"..em1.."!{timeout="..moh1_timeout.."}local_stream://mohmv!file_string://"..em2.."!local_strea<a>m://mohmv</a>”</div><div><br></div><div><br></div></div></div></div></div></div></div><div style="word-wrap:break-word"><div><div><div><div><blockquote type="cite"><div>On Mar 25, 2016, at 9:48 AM, Michael Collins <<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>> wrote:</div><br><div><div dir="ltr">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><br></div><div>Be sure to let us know how it goes. :)</div><div><br></div><div>-MSC</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 24, 2016 at 8:28 AM, Nishad Musthafa <span dir="ltr"><<a href="mailto:nishadmusthafa@gmail.com" target="_blank">nishadmusthafa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, <div><br></div><div>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><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)"> <!-- 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>It is also possible to set a timeout for a single file using </div><div><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)"><action application="playback" data="{timeout=15000}file_string://${sound_dir}/music/8000/music1.wav"/></pre></div><div>Is it possible to merge the above two? I am looking at setting a single timeout for multiple files. Is this possible?</div><span><font color="#888888"><div><br></div><div>Nishad </div></font></span></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services: <br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.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://confluence.freeswitch.org" target="_blank">http://confluence.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" 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></div></blockquote></div><br></div></div></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div></div></div>