Yes, I know. I had contributed some changes (mistake correction) to mod_xml_radius. Now I had two projects with similar tasks, which needed for this feature. Maybe, coding is the best way to solve my problems.

2015-02-06 23:02 GMT+03:00 Michael Jerris <mike@jerris.com>:
This seems like an interesting idea.  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?  We have a system for submitting pull requests.  More Info available here:


https://freeswitch.org/confluence/display/FREESWITCH/Contributing+Code

https://freeswitch.org/confluence/display/FREESWITCH/Pull+Requests


Mike

On Feb 6, 2015, at 2:45 PM, Борисов, Дмитрий / Dmitriy Borisov <bordmi@rarus.ru> wrote:

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 realize task for new event. One thing can be introduced: family of calls to freeswitch.api:sched() subsystem, it can be useful

2015-02-06 20:24 GMT+03:00 Michael Collins <msc@freeswitch.org>:


On Fri, Feb 6, 2015 at 5:27 AM, Борисов, Дмитрий / Dmitriy Borisov <bordmi@rarus.ru> wrote:
I found only one method (from lua):

freeswitch.api:execute("sched_api","$time $group luarun(fire_event.lua $id)")

Does freeswitch has any other way, less perverse?

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.

-MC



2015-02-06 16:03 GMT+03:00 Борисов, Дмитрий / Dmitriy Borisov <bordmi@rarus.ru>:
Hi!

I want to schedule a FreeSWITCH event from lua script. How can I do this?

sched_api is too hard way to do this, in my opinion.

--
with best regards,
Dmitriy Borisov



--
with best regards,
Dmitriy Borisov

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
with best regards,
Dmitriy Borisov
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
with best regards,
Dmitriy Borisov