<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 seems like an interesting idea. &nbsp;Why not try to code something up (things like this come out of our object wrapper for embedded languages switch_cpp.cpp) and contribute the code? &nbsp;We have a system for submitting pull requests. &nbsp;More Info available here:<div class=""><br class=""></div><div class=""><br class=""></div><div class=""><a href="https://freeswitch.org/confluence/display/FREESWITCH/Contributing+Code" class="">https://freeswitch.org/confluence/display/FREESWITCH/Contributing+Code</a></div><div class=""><br class=""></div><div class=""><a href="https://freeswitch.org/confluence/display/FREESWITCH/Pull+Requests" class="">https://freeswitch.org/confluence/display/FREESWITCH/Pull+Requests</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Mike</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 6, 2015, at 2:45 PM, Борисов, Дмитрий / Dmitriy Borisov &lt;<a href="mailto:bordmi@rarus.ru" class="">bordmi@rarus.ru</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I think about this last some hours and my opinion was changed, my first words was hasty. The base for my first words was next: use an API cal from LUA script for caling other LUA script (or the same script) is not normal... But now i think that it is most real way to&nbsp;realize task for new event. One thing can be introduced: family of calls to freeswitch.api:sched() subsystem, it can be useful</div><div class="gmail_extra"><br class=""><div class="gmail_quote">2015-02-06 20:24 GMT+03:00 Michael Collins <span dir="ltr" class="">&lt;<a href="mailto:msc@freeswitch.org" target="_blank" class="">msc@freeswitch.org</a>&gt;</span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote"><span class="">On Fri, Feb 6, 2015 at 5:27 AM, Борисов, Дмитрий / Dmitriy Borisov <span dir="ltr" class="">&lt;<a href="mailto:bordmi@rarus.ru" target="_blank" class="">bordmi@rarus.ru</a>&gt;</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="">I found only one method (from lua):<div class=""><br class=""></div><div class="">freeswitch.api:execute("sched_api","$time $group luarun(fire_event.lua $id)")</div><div class=""><br class=""></div><div class="">Does freeswitch has any other way, less perverse?</div></div></blockquote><div class=""><br class=""></div></span><div class="">Could you define what makes sched_api "way too hard" and "perverse"? We've been using it for years and I find it to be exceptionally simple and elegant. Granted, it'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 class=""><br class=""></div><div class="">-MC<br class=""><br class=""><br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">2015-02-06 16:03 GMT+03:00 Борисов, Дмитрий / Dmitriy Borisov <span dir="ltr" class="">&lt;<a href="mailto:bordmi@rarus.ru" target="_blank" class="">bordmi@rarus.ru</a>&gt;</span>:<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="">I want to schedule a FreeSWITCH event from lua script. How can I do this?</div><div class=""><br class=""></div><div class="">sched_api is too hard way to do this, in my opinion.<span class=""><font color="#888888" class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">with best regards,</div><div class="">Dmitriy Borisov</div></div></div></div></div></div></div></div></div></div></div>
</font></span></div></div>
</blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">with best regards,</div><div class="">Dmitriy Borisov</div></div></div></div></div></div></div></div></div></div></div>
</div>
</div></div><br class=""></span>_________________________________________________________________________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" target="_blank" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" target="_blank" class="">http://www.freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" target="_blank" class="">http://confluence.freeswitch.org</a><br class="">
<a href="http://www.cluecon.com/" 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" target="_blank" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" 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" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div><br class=""></div></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/" target="_blank" class="">http://www.freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" target="_blank" class="">http://confluence.freeswitch.org</a><br class="">
<a href="http://www.cluecon.com/" 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" 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" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">with best regards,</div><div class="">Dmitriy Borisov</div></div></div></div></div></div></div></div></div></div></div>
</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></body></html>