Hello,<div><br></div><div>   It seems as if the bitwise operations in Kamailio 3.1.4 are broken?  Please correct me if I am doing something wrong - however simple evaluations such as:</div><div><br></div><div>$avp(s:my-test-bit) = 10;</div>
<div><br></div><div>$avp(s:my-test-bit) = (int)$avp(s:my-test-bit) &amp; ~ 2;</div><div><br></div><div>Seems to result in $avp(s:my-test-bit) being equal to &quot;2&quot; rather than &quot;8&quot;</div><div><br></div><div>
Any thoughts / Suggestions / Fixes?</div><div><br></div><div>I also wonder if this has any relation to !~ not working?</div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>Thanks for all of your help in advance!</div>
</div><div><br></div><div>P.S. I sent this both to user list and to devel, please forgive me if they do not belong in one of the lists.</div><div><br></div><div>Sincerely,</div><div>Brandon Armstead</div>