<html><body bgcolor="#FFFFFF"><div>Re schedule is done in your callback, take a look at places that use these apis in the code for details.<br><br>On Aug 10, 2009, at 6:58 AM, mark morreny <<a href="mailto:markmorreny@gmail.com">markmorreny@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>Hi,<br><br>Thank you for pointing out sched_api.<br><br>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.<br><br>Thanks,<br>Mark<br>
<br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Moises Silva</b> <span dir="ltr"><<a href="mailto:moises.silva@gmail.com"><a href="mailto:moises.silva@gmail.com">moises.silva@gmail.com</a></a>></span><br>
Date: Mon, Aug 10, 2009 at 12:05 AM<br>Subject: Re: [Freeswitch-users] Scheduler in module<br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org"><a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a></a><br><br><br><div>On Sun, Aug 9, 2009 at 11:57 AM, mark morreny <span dir="ltr"><<a href="mailto:markmorreny@gmail.com" target="_blank"><a href="mailto:markmorreny@gmail.com">markmorreny@gmail.com</a></a>></span> wrote:</div>
<div><div></div><div class="h5"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
Hi,<br><br>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. <br><br>Does anyone know what is the best way to implement a scheduler in a mod?<br>
<br>Best Regards,<br><font color="#888888">Mark<br></font></blockquote></div></div><div><br></div></div></div>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 questions.<div>
<div><br>-- <br>Moises Silva<br>Software Developer<br>Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada<br>t. 1 905 474 1990 x 128 | e. <a href="mailto:moy@sangoma.com" target="_blank"><a href="mailto:moy@sangoma.com">moy@sangoma.com</a></a><br>
</div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></a><br>
<a href="http://www.freeswitch.org" target="_blank"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></a><br>
<br></div><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users"><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></a></span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>