[sr-dev] pseudo variable $ad is not working

Juha Heinanen jh at tutpro.com
Wed Oct 28 19:05:17 CET 2009


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 at 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



More information about the sr-dev mailing list