[Freeswitch-users] How to use FreeSWITCH system scheduler?

Борисов, Дмитрий / Dmitriy Borisov bordmi at rarus.ru
Fri Feb 6 22:45:16 MSK 2015


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 at freeswitch.org>:

>
>
> On Fri, Feb 6, 2015 at 5:27 AM, Борисов, Дмитрий / Dmitriy Borisov <
> bordmi at 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 at 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 at 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 at 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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150206/c13ce5bf/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list