[Freeswitch-dev] about developing modules and documentation

Michael Collins msc at freeswitch.org
Tue Jul 31 02:30:29 MSD 2012


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 at 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 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
> > http://www.freeswitchsolutions.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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120730/d747776c/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list