17 Feb
2009
17 Feb
'09
5:04 a.m.
Stefan Winter wrote:
Hi,
is there a way to reference the name of the client stanza (or its shortname) in unlang? I.e. if there is
client foo { ipaddr = 1.2.3.4 shortname = foostuff }
Then there's a request coming in from this client. In the client processing, can there be sth like
if ( -- something that reveals "foo" or "foostuff" -- ) { ... }
?
if ("%{client:shortname}" == "foostuff") { ... } Also: %{home_server:foo} %{home_server_pool:foo} %{config:section.subsection.item} gets you "value" for that item Alan DeKok.