high.*!
just wondering if there is any possibility to use global variables in openser.cfg? like e.g. for configuration values, constants, ..
another question: how can i access the configuration paramerters like "debug", "port", etc.
thx & cheers -hugo
El Wednesday 16 April 2008 13:17:38 Hugo Koblmueller escribió:
high.*!
just wondering if there is any possibility to use global variables in openser.cfg? like e.g. for configuration values, constants, ..
Better use M4 preprocessor: http://www.asterisk.name/asterisk/0596009623/toc.html
another question: how can i access the configuration paramerters like "debug", "port", etc.
It shouldn't be neccesary if you use M4.
so this means it is not possible(both), right?
what is this asterisk link about - cannon find anything about the M4 preprocessor?
cheers -hugo
-----Original Message----- From: users-bounces@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Iñaki Baz Castillo Sent: Wednesday, April 16, 2008 3:27 PM To: users@lists.openser.org Subject: Re: [OpenSER-Users] global variables
El Wednesday 16 April 2008 13:17:38 Hugo Koblmueller escribió:
high.*!
just wondering if there is any possibility to use global variables in openser.cfg? like e.g. for configuration values, constants, ..
Better use M4 preprocessor: http://www.asterisk.name/asterisk/0596009623/toc.html
another question: how can i access the configuration paramerters like "debug", "port", etc.
It shouldn't be neccesary if you use M4.
-- Iñaki Baz Castillo ibc@in.ilimit.es
_______________________________________________ Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
just a small update: i just learned about the module "gflags" (http://www.openser.org/docs/modules/1.2.x/gflags.html) which at least implements the usage of 'real' global flags, which is currently fine for me. thx & cheers -hugo
-----Original Message----- From: Hugo Koblmueller [mailto:hugo@koblmueller.com] Sent: Wednesday, April 16, 2008 3:41 PM To: 'Iñaki Baz Castillo' Cc: users@lists.openser.org; Hugo Koblmueller Subject: RE: [OpenSER-Users] global variables
so this means it is not possible(both), right?
what is this asterisk link about - cannon find anything about the M4 preprocessor?
cheers -hugo
-----Original Message----- From: users-bounces@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Iñaki Baz Castillo Sent: Wednesday, April 16, 2008 3:27 PM To: users@lists.openser.org Subject: Re: [OpenSER-Users] global variables
El Wednesday 16 April 2008 13:17:38 Hugo Koblmueller escribió:
high.*!
just wondering if there is any possibility to use global variables in openser.cfg? like e.g. for configuration values, constants, ..
Better use M4 preprocessor: http://www.asterisk.name/asterisk/0596009623/toc.html
another question: how can i access the configuration paramerters like "debug", "port", etc.
It shouldn't be neccesary if you use M4.
-- Iñaki Baz Castillo ibc@in.ilimit.es
_______________________________________________ Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
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