<br><br><div class="gmail_quote">On Mon, May 9, 2011 at 11:34 PM, Josh M. Patten <span dir="ltr"><<a href="mailto:jpatten@co.brazos.tx.us">jpatten@co.brazos.tx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">It seems the way this could be accomplished is to allow asynchronous execution capabilities in lua. However I don't think this exists.<br>
<br>
Is there a better way to "execute and forget" the conference app so the script can move on to the next bit of code?
<br></div></div></blockquote><div><br></div><div>Try using an API instead of messing with session:xxx and all that stuff:</div><div><br></div><div>api = freeswitch.API();</div><div>res = api:execute("conference",conf_name .. " play /path/to/file.wav";</div>
<div><br></div><div>conf_name is the name of the conference you are using. If you're not sure what name you have then just start up a conference and then type "conference list" at fs_cli and you'll see the name. You can use channel variables, etc. if the name changes depending on the destination number.</div>
<div><br></div><div>-MC</div></div>