[Freeswitch-users] Fwd: Fwd: Scheduler in module
mark morreny
markmorreny at gmail.com
Wed Aug 12 04:26:38 PDT 2009
Hi,
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.
switch_scheduler_task_thread_start();
switch_scheduler_add_task(switch_epoch_time_now(NULL),
data_flush_callback, "data_flush","core",0,NULL,SSHF_NONE|SSHF_NO_DEL);
SWITCH_STANDARD_SCHED_FUNC(data_flush_callback) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "starting to flush
data buffer...\n");
task->runtime = switch_time_now() + 10;
}
Does anyone know how to get it to work?
Thanks,
Mark
---------- Forwarded message ----------
From: Brian West <brian at freeswitch.org>
Date: Mon, Aug 10, 2009 at 8:53 PM
Subject: Re: [Freeswitch-users] Fwd: Scheduler in module
To: freeswitch-users at lists.freeswitch.org
switch_rtp.c has a simple one for the zrtp cache storing.
/b
On Aug 10, 2009, at 7:13 AM, Michael Jerris wrote:
> Re schedule is done in your callback, take a look at places that use
> these apis in the code for details.
_______________________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090812/a11388fa/attachment-0002.html
More information about the FreeSWITCH-users
mailing list