[OpenSER-Users] global variables

Henning Westerholt henning.westerholt at 1und1.de
Wed Apr 16 15:46:52 CEST 2008


On Wednesday 16 April 2008, Hugo Koblmueller wrote:
> just wondering if there is any possibility to use global variables in
> openser.cfg? like e.g. for configuration values, constants, ..

Hi Hugo,

you could use the shared variables from cfgutils:
http://www.openser.org/docs/modules/devel/cfgutils.html#id2480071

There are at the moment only available for the trunk version, though.

> another question: how can i access the configuration paramerters like
> "debug", "port", etc.

You can access them from any module, as many of them are global variables. For 
the script just use a preprocessor, as Iñaki said.

Cheers,

Henning




More information about the sr-users mailing list