<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>can you try:</p>
    <p>kamcmd cfgutils.is_gflag i:1024</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 19.03.20 12:12, Yufei Tao wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJwP0iRDTBpzwkbEumpcN8z6-dBoHfa5amq_hKq6Cd3gPEqhig@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hi,</div>
        <div><br>
        </div>
        <div>I got some problems with is_gflags:</div>
        <div>1. Set the gflag:<br>
        </div>
        <div># kamcmd cfgutils.set_gflag 1024</div>
        <div>2. Check the gflags - fine:<br>
        </div>
        <div># kamcmd cfgutils.get_gflags<br>
          0x400 (1024)</div>
        <div>3. Check using is_gflag - problem:</div>
        <div># kamcmd cfgutils.is_gflag 1024<br>
          FALSE</div>
        <div><br>
        </div>
        <div>Seems is_gflag always returns FALSE somehow. Calling
          function is_gflag() from the cfg file seems to always return
          FALSE too.<br>
        </div>
        <div><br>
        </div>
        <div>I tried this on Kamailio 5.3.2 and 5.3.3 and the behaviour
          is the same. <br>
        </div>
        <div><br>
        </div>
        <div>Best regards,</div>
        <div>Yufei<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
  </body>
</html>