[OpenSER-Devel] more on != test problem

Juha Heinanen jh at tutpro.com
Sun Feb 17 09:38:28 CET 2008


if i execute this piece of code:

	$var(tmp) = $rU + "@" + $rd;
	if ($avp(i:301) != $var(tmp)) {
		xlog("L_INFO", "var test <$avp(i:301)> != <$var(tmp)>\n");
		sl_send_reply("500", "Unauthorized");
		exit;
	};
	if ($avp(i:301) != "$rU@$rd") {
		xlog("L_INFO", "exp test <$avp(i:301)> != <$rU@$rd>\n");
		sl_send_reply("500", "Unauthorized");
		exit;
	};

i get to syslog

Feb 17 10:36:16 rautu /usr/sbin/openser[28914]: exp test <jh at test.fi> != <jh at test.fi> 

i.e., != comparison to var works, but to pvar expression doesn't.  if
comparing to pvar expression is not supported, syntax checker should
detect it.

-- juha



More information about the Devel mailing list