<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
the first with square brackets is obsolete, doesn't work anymore
since 3.0 (wiki has to be updated). The second should work, do you
get syntax error?<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 13/02/14 15:14, Jijo wrote:<br>
</div>
<blockquote
cite="mid:CAOYmDE-Hp17tD=h4sD5_xjK5264dtLoB6A3+V4+Mc=Whr1i6rQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hi
<div><br>
</div>
<div>I tried the binary operation using $var as per the
documentation and its seems not working. Can somebody help me
to understand it.</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="http://kamailio.org/dokuwiki/doku.php/pseudovariables:3.1.x">http://kamailio.org/dokuwiki/doku.php/pseudovariables:3.1.x</a><br>
</div>
<div><br>
</div>
<div>
<pre class="" style="padding:0.5em;border:1px dashed rgb(140,172,187);color:rgb(0,0,0);background-color:rgb(247,249,250);line-height:1.1em;font-size:12px;overflow:auto">$var(a) = 3 + (7&(~2));
if( [ $var(a) & 4 ] ) {
xlog("var a has third bit set\n");
}</pre>
</div>
<div><br>
</div>
<div>The format with square bracket in the conditional statement
is showing parse error when i load the cfg. So it tried like
below and that too not working </div>
<div><br>
</div>
<div>
<pre class="" style="padding:0.5em;border:1px dashed rgb(140,172,187);color:rgb(0,0,0);background-color:rgb(247,249,250);line-height:1.1em;font-size:12px;overflow:auto">$var(a) = 8;
if( $var(a) & 4 ) {
xlog("var a has third bit set\n");
}</pre>
</div>
<div>Please let me know if something missing here.?</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks</div>
<div>Jijo</div>
</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>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>