22 Sep
2020
22 Sep
'20
4:50 p.m.
On 09.09.20 21:53, g4-lisz@tonarchiv.ch wrote:
Hi everyone
I wonder if I can access the configuration attributes of a request in the module configuration.
I.e. in the code a configuration attribute is set like this:
pair_make_config("Custom-My-Attrib", "Some value, T_OP_ADD);
It would be nice if i could access this in a configuration file, so it can be expanded in a string:
my_module {
some_param = "foobar-%{???:Custom-My-Attrib}"
}
Is something like this possible?
By the way, the solution was: some_param = "foobar-%{control:Custom-My-Attrib}" I.e. what is request->config in the API is "control" in xlat.