Daniel,<div><br></div><div>   This commit is working perfectly!  Thank you.</div><div><br></div><div>Sincerely,</div><div>Brandon Armstead<br><br><div class="gmail_quote">On Tue, Aug 2, 2011 at 3:05 PM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div class="im">
    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&#39;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 &#39;x !~ y&#39; 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:
    </div><blockquote type="cite"><div><div></div><div class="h5">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>
        
        <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></fieldset>
      <br>
      </div></div><div class="im"><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </div></blockquote><div class="im">
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre>
  </div></div>

</blockquote></div><br></div>