Hi,<br><br>In my LOAD_FUNCTION, I am trying to have freeswitch to flush out some data every 10 s.  The following lines of code does not show any effect at all.<br><br>    switch_scheduler_task_thread_start();<br>    switch_scheduler_add_task(switch_epoch_time_now(NULL), data_flush_callback, &quot;data_flush&quot;,&quot;core&quot;,0,NULL,SSHF_NONE|SSHF_NO_DEL);<br>
<br><br>SWITCH_STANDARD_SCHED_FUNC(data_flush_callback) {<br><br>switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;starting to flush data  buffer...\n&quot;);<br>         <br><br>    task-&gt;runtime = switch_time_now() + 10;<br>
<br>}<br><br>Does anyone know how to get it to work?<br><br>Thanks,<br>Mark<br><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Brian West</b> <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt;</span><br>
Date: Mon, Aug 10, 2009 at 8:53 PM<br>Subject: Re: [Freeswitch-users] Fwd:  Scheduler in module<br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br><br><br>switch_rtp.c has a simple one for the zrtp cache storing.<br>

<font color="#888888"><br>
/b<br>
</font><div class="im"><br>
On Aug 10, 2009, at 7:13 AM, Michael Jerris wrote:<br>
<br>
&gt; Re schedule is done in your callback, take a look at places that use<br>
&gt; these apis in the code for details.<br>
<br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></div><br>