<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 6, 2015 at 5:27 AM, Борисов, Дмитрий / Dmitriy Borisov <span dir="ltr">&lt;<a href="mailto:bordmi@rarus.ru" target="_blank">bordmi@rarus.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I found only one method (from lua):<div><br></div><div>freeswitch.api:execute(&quot;sched_api&quot;,&quot;$time $group luarun(fire_event.lua $id)&quot;)</div><div><br></div><div>Does freeswitch has any other way, less perverse?</div></div></blockquote><div><br></div><div>Could you define what makes sched_api &quot;way too hard&quot; and &quot;perverse&quot;? We&#39;ve been using it for years and I find it to be exceptionally simple and elegant. Granted, it&#39;s designed to schedule an API to be run, not specifically to fire an event. However, sending events requires several steps to be taken anyway, i.e. defining the event headers and then firing. Doing sched_api to have a script fire an event for you seems completely reasonable.<br><br></div><div>-MC<br><br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-02-06 16:03 GMT+03:00 Борисов, Дмитрий / Dmitriy Borisov <span dir="ltr">&lt;<a href="mailto:bordmi@rarus.ru" target="_blank">bordmi@rarus.ru</a>&gt;</span>:<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>I want to schedule a FreeSWITCH event from lua script. How can I do this?</div><div><br></div><div>sched_api is too hard way to do this, in my opinion.<span><font color="#888888"><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>with best regards,</div><div>Dmitriy Borisov</div></div></div></div></div></div></div></div></div></div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>with best regards,</div><div>Dmitriy Borisov</div></div></div></div></div></div></div></div></div></div></div>
</div>
</div></div><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>
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">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></blockquote></div><br></div></div>