[Kamailio-Devel] How can i receive list of loaded modules

Henning Westerholt henning.westerholt at 1und1.de
Mon Sep 8 16:47:09 CEST 2008


On Monday 08 September 2008, Jabka Atu wrote:
> How can i get list of loaded modules in kamilio (openser) ?
> I would like to get the list some how inside the code (actually in dprint).
> but be happy to any solution.
>
> I see that that each module export information but i can't see how to
> connect to it .

Hi Jabka,

its possible to access the list of all modules, the struct is 
called "sr_module". Take a look at the sr_module.c::init_mod function, this 
processes all mod_init functions for an example. 

Cheers,

Henning



More information about the Devel mailing list