[SR-Dev] [PATCH 2/2] port from kamailio, r4007

Jan Janak jan at iptel.org
Fri Apr 3 13:33:30 CEST 2009


Henning,

On 03-04 13:25, Henning Westerholt wrote:
> On Friday 03 April 2009, Andrei Pelinescu-Onciul wrote:
> > >  - when only module.so is given to loadmodule and mpath is set,
> > >    try mpath/module/module.so if mpath/module.so is not found
> > >  - useful when runing from sources tree
> > >  - small adaptions because of renames in kamailio
> >
> > How is this different from loadpath?
> >
> > We already have loadpath that does something similar (one difference is
> > that the module must not end in .so if loadpath is to be applied).
> 
> Hi Andrei,
> 
> i was not aware of this loadpath stuff, even if i noticed it in the parser. 
> I've searched for this on iptel.org in the documentation search and also with 
> google, but did not found something. Is there a reference somewhere of this 
> SER core parameters, for the future?

See the main configuration file in etc/ser-oob.cfg, that file is using it.

> I've tested the loadpath, there is one difference. If you specify
> 
> loadpath "modules/"
> loadmodule "tm"
> 
> It will only try to load "modules/tm.so". This patchs added supports that it 
> also tries to load "modules/tm/tm.so" if its not found in the first location, 
> which is really handy if you run kamailio from a source tree. It necessary
> to

loadpath does that too, see sr_module.c:load_module

  Jan.



More information about the sr-dev mailing list