according to core cookbook:
~ : bitwise NOT
however, looks like it has no effect. i have
$var(test) = ~2; xlog("L_INFO", "test is <$var(test)>\n");
and i get to syslog:
May 17 18:10:40 sip /usr/sbin/sip-proxy[29280]: INFO: test is <2>
have i misunderstood the operator or is there a bug?
-- juha
Juha,
Try $var(test) = $var(test) ~ 2;
Sincerely, Brandon Armstead
On Tue, May 17, 2011 at 8:13 AM, Juha Heinanen jh@tutpro.com wrote:
Juha,
Quick correction: $var(test) = $var(test) & ~ 2;
On Tue, May 17, 2011 at 8:13 AM, Juha Heinanen jh@tutpro.com wrote:
On 5/18/11 8:36 AM, Juha Heinanen wrote:
Looks like some operators are missing in the new core cfg interpreter, including this one.
The workaround that I can suggest right now, for those needing it at runtime, use Lua or other embedded scripting options. I will put it anyhow with high priority in my to-do list.
Cheers, Daniel
Hello,
I re-added the operator over the weekend in master branch. It would be great if you can test and report eventual issues.
Thanks, Daniel
On 5/19/11 9:48 AM, Daniel-Constantin Mierla wrote: