<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    some of the bitwise operators were forgotten to be added when we
    migrated to the new core. They were added some time ago, but in
    master branch since I didn't want to commit in stable branch at that
    moment, because it was just few days before 3.1.4, not allowing
    testing.<br>
    <br>
    I just backported the patch to branch 3.1, so if you fetch the
    sources from GIT now, you should have them and the AND with binary
    NOT should work properly. Let me know if not.<br>
    <br>
    Instead of 'x !~ y' you have to use for now: !(x =~ y).<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    On 8/2/11 10:44 PM, Brandon Armstead wrote:
    <blockquote
cite="mid:CACr1DbDtuLCKKL73Dr3YGF3dedAb7nM6ACYqYHzSygt0RXCbCA@mail.gmail.com"
      type="cite">Hello,
      <div><br>
      </div>
      <div>&nbsp; &nbsp;It seems as if the bitwise operations in Kamailio 3.1.4
        are broken? &nbsp;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 "2"
        rather than "8"</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=ISO-8859-1">
        <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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>