Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Fwd: Scheduler in module


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
markmorreny at gmail.com
Guest





PostPosted: Mon Aug 10, 2009 6:05 am    Post subject: [Freeswitch-users] Fwd: Scheduler in module Reply with quote

Hi,

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.

Thanks,
Mark

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


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

Quote:
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 questions.
--
Moises Silva
Software Developer
Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada
t. 1 905 474 1990 x 128 | e. moy@sangoma.com (moy@sangoma.com)



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mike at jerris.com
Guest





PostPosted: Mon Aug 10, 2009 7:20 am    Post subject: [Freeswitch-users] Fwd: Scheduler in module Reply with quote

Re schedule is done in your callback, take a look at places that use these apis in the code for details.

On Aug 10, 2009, at 6:58 AM, mark morreny <markmorreny@gmail.com (markmorreny@gmail.com)> wrote:



Quote:
Hi,

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.

Thanks,
Mark

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


On Sun, Aug 9, 2009 at 11:57 AM, mark morreny <[url=mailto:markmorreny@gmail.com]markmorreny@gmail.com (markmorreny@gmail.com)[/url]> wrote:

Quote:
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 questions.
--
Moises Silva
Software Developer
Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada
t. 1 905 474 1990 x 128 | e. [url=mailto:moy@sangoma.com]moy@sangoma.com (moy@sangoma.com)[/url]



_______________________________________________
FreeSWITCH-users mailing list
[url=mailto:FreeSWITCH-users@lists.freeswitch.org]FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)[/url]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
brian at freeswitch.org
Guest





PostPosted: Mon Aug 10, 2009 8:06 am    Post subject: [Freeswitch-users] Fwd: Scheduler in module Reply with quote

switch_rtp.c has a simple one for the zrtp cache storing.

/b

On Aug 10, 2009, at 7:13 AM, Michael Jerris wrote:

Quote:
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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services