<div dir="ltr">Hello,<div><br></div><div style>something similar can be done now with variables:</div><div style><br></div><div style>if($mf & 7)</div><div style><br></div><div style>or</div><div style><br></div><div style>
if( $mf & ( (1<<2) | (1<<3) ) )</div><div style><br></div><div style>Anyhow, if anyone wants a dedicated function, it is ok, but might be better to add a new function, that can be in corex module to allow pv parameters. Could be actually two functions:</div>
<div style>- allflagsset(x) - match all the flags (e.g, $mf & 7 == 7)</div><div style>- anyflagset(x) -match any of the flags (e.g, $mf & 7 != 0)</div><div style><br></div><div style>Cheers,</div><div style>Daniel</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 9, 2013 at 1:02 PM, Juha Heinanen <span dir="ltr"><<a href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
currently isflagset core function accepts only one flag as argument.  it<br>
would be nice if more that one flag could be tested with one function<br>
call, e.g.,<br>
<br>
isflagset(1|2) or isflagset(1&2)<br>
<br>
since i'm not familiar with adding syntax related stuff to core, is it<br>
ok if i create a tracker wish list item on this?<br>
<br>
-- juha<br>
<br>
_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Daniel-Constantin Mierla<br>  <a href="http://www.asipto.com">http://www.asipto.com</a>
</div>