[OpenSER-Devel] Skeleton Module

Henning Westerholt henning.westerholt at 1und1.de
Tue Dec 4 09:29:03 UTC 2007


On Monday 03 December 2007, Daniel Corbe wrote:
> I'm having issues with a "skeletal" module, and the openser core refuses to
> start when I have it "load"ed in my config file.  Not sure why, and I could
> use a bit of direction from the rest of the list.
> It compiles
>
> -Daniel

Hello Daniel,

> -- Cut Here --
>[..]
> struct module_exports exports =
>
> {
>
> "page", /* module's name */
>
> cmds, /* exported functions */
>
> mod_params, /* param exports */
>
> mod_stats, /* exported statistics */
>
> mod_init, /* module initialization function */
>
> 0, /* reply processing function FIXME Not sure when this is used */
>
> mod_destroy, /* Destroy function */
>
> child_init /* per-child init function */

The module interface you've defined is not complete at all (if you want to use 
a recent version). This should give you warnings during compilation. This 
could lead to problems during startup. Please use the interface that is 
defined from the actual modules of the server.

Cheers,

Henning




More information about the Devel mailing list