[Freeswitch-dev] about developing modules and documentation
Juan Pablo L.
jpablolorenzetti at hotmail.com
Tue Jul 31 02:26:27 MSD 2012
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 at gmail.com
> To: freeswitch-dev at 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 at freeswitch.org
> Official FreeSWITCH Sites
> Join Us At ClueCon - Aug 7-9, 2012
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev