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="[email protected]"

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

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to