[Freeswitch-users] Fwd: Scheduler in module

mark morreny markmorreny at gmail.com
Mon Aug 10 03:58:04 PDT 2009


Thank you for pointing out sched_api.

What about if I want to do a recurring schedule. is it possible or I should
just call sched_api another time in the execution of my clean up code.


---------- Forwarded message ----------
From: Moises Silva <moises.silva at gmail.com>
Date: Mon, Aug 10, 2009 at 12:05 AM
Subject: Re: [Freeswitch-users] Scheduler in module
To: freeswitch-users at lists.freeswitch.org

On Sun, Aug 9, 2009 at 11:57 AM, mark morreny <markmorreny at gmail.com> wrote:

> Hi,
> I would like to collect some data in my module which would listen to the
> event socket and then a scheduler would kick off every so often to clean up
> the data.
> Does anyone know what is the best way to implement a scheduler in a mod?
> Best Regards,
> Mark

Just use the API that the FreeSWITCH core already has for you. Check
src/include/switch_scheduler.h for details, the comments in there should be
enough for you to learn to use it. If not, you can ask here more specific
Moises Silva
Software Developer
Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3
t. 1 905 474 1990 x 128 | e. moy at sangoma.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090810/e931340a/attachment-0002.html 

More information about the FreeSWITCH-users mailing list