The shutdown callback must stop all the allocated services and threads before it exits. That is how it can make sure everything us unallocated. On Mon, Jul 30, 2012 at 5:34 PM, Juan Pablo L. <jpablolorenzetti@hotmail.com> wrote:
thank you very much i appreciated. so regarding my doubts i guess the answer would be that there is not such documents or explanations ? (i have not yet watched the video) cause right now i m blinded, just copying what other modules are doing but without really understanding why .... thanks!
________________________________
Date: Mon, 30 Jul 2012 15:30:29 -0700 From: msc@freeswitch.org To: freeswitch-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] about developing modules and documentation
I suggest you listen to Ken Rice's "DIY dialplan" presentation: http://torrents.freeswitch.org/conf_call_2012-05-16.torrent
He makes a lot of interesting statements about doing modules. He may not answer all of these questions specifically but it's definitely worth your time. http://torrents.freeswitch.org/conf_call_2012-05-16.torrent
-MC
On Mon, Jul 30, 2012 at 3:26 PM, Juan Pablo L. <jpablolorenzetti@hotmail.com<mailto:jpablolorenzetti@hotmail.com>> wrote:
Hi, yes thanks! i checked that and i do not have an issue in building the module, that is clear thanks to that page and other module source codes, what i do not understand are things like (locking mainly): when freswitch calls the unload function in the module, is there a chance that some of the code could be in the middle of execution in a different call (different thread)? , can the load function be called more than once ? i know (deducted really) that the main function, the one that actually implements the functionality can be called from different threads (as i read freeswitch uses different threads to treat incoming calls into the switch) so if i have something shared but i know it wont change for as long as the module is loaded i do not need to put a lock but that same thing has some memory allocated that will be freed when freeswitch deleted the memory pool after unloading the module that was passed at loading time .. i also read that using the session memory pool is not good idea, so almos all stock modules use it like vm ? so i m trying to figure out all these but i do not find docs about it ... and you know how murphy is ..
----------------------------------------
Date: Tue, 31 Jul 2012 00:05:50 +0200 From: daniel.swarbrick@gmail.com<mailto:daniel.swarbrick@gmail.com> To: freeswitch-dev@lists.freeswitch.org<mailto:freeswitch-dev@lists.freeswitch.org> Subject: Re: [Freeswitch-dev] about developing modules and documentation
Have you checked http://wiki.freeswitch.org/wiki/Authoring_Freeswitch_Modules ?
On 30/07/12 23:55, Juan Pablo L. wrote:
Hi, i m not sure if this is the correct list but i m developing a module to perform some services but i do not have a clear understanding how modules are treated/managed in freeswitch and its internal flow when it is calling the functions from modules, etc etc .. i m looking into other modules source codes but there are pieces (well all the code related to multi-threated) that i do not understand because i do not have this base. thanks!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org<mailto:FreeSWITCH-dev@lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org<mailto:FreeSWITCH-dev@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com Join Us At ClueCon - Aug 7-9, 2012 FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900