[OpenSER-Devel] Request for comment: module interface extension
Henning Westerholt
henning.westerholt at 1und1.de
Mon Dec 17 14:04:46 UTC 2007
On Monday 17 December 2007, Juha Heinanen wrote:
> Henning Westerholt writes:
> > So for now i suggest only to change the module functions export to:
> >
> > typedef int (*cmd_function)(struct sip_msg*, int count, char
> > **params);
>
> so there can be optional args, like function([arg1 [,arg2 [,arg3...]]])?
This is already possible with the actual interface, e.g. at registrar for the
save function. The second option (the flags) are ignored if the functions is
called with only one parameter.
It will gets easier of course, if the module implementation has access to the
parameter count.
Cheers,
Henning
More information about the Devel
mailing list