i have this kind of test in my config:
if (lookup_domain("$fd", "$ad")) {
$var(lcr_id) = $fd.lcr_id;
} else {
xlog("L_WARN", "Domain $ad of authorized user $aU is not
local!\n");
send_reply("404", "Not found");
exit;
};
the problem is that when request that has header
Proxy-Authorization: Digest username="test(a)test.fi"
arrives, sr prints to syslog
Oct 28 20:01:09 localhost /usr/sbin/sip-proxy[7248]: WARNING: Domain of authorized user
test is not local!
i.e., $ad does not have test.fi as its value.
according to wiki it should work:
Auth username domain
$ad - domain part of username from Authorization or Proxy-Authorization
header
so this looks like a bug to me.
-- juha