On Nov 25, 2021, at 10:22 AM, Nicolas Breuer <Nicolas.Breuer@belcenter.biz> wrote: ... (0) Proxy-State = 0x313036 (0) if ("&reply:Proxy-State" =~ /$/) { (0) if ("&reply:Proxy-State" =~ /$/) -> TRUE (0) if ("&reply:Proxy-State" =~ /$/) {
Trying to expand Proxy-State but returns empty
You don't need to quote the attribute name. None of the documentation and examples do that. You don't need to check for non-empty values via a regular expression. You can just check if the attribute exists. See "man unlang" And even if that's fixed, you're looking at the *reply* list. The Proxy-State is in the *proxy* and *proxy_reply* list. Read the debug output to see this. So what you want is: if (&proxy:Proxy-State) { ... prequest was proxied } Alan DeKok.