<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>ok, thanks for testing. I backported to 5.3 as well.</p>
    <p>There seemed to be an issue with the size of the variables used
      to match. Just for reference, I typically use $shv(x) variables
      these days if I need to set some value via rpc and test it in
      config, it is more or less like gflags, but you can have many and
      they can be controlled via rpc with pv.shvSet/Get from pv module.<br>
    </p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 19.03.20 17:35, Yufei Tao wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJwP0iRyfvtOdupXuEMKc9VAYAOB0z5NysX6efk9S_YU3=tYiA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hi Daniel,</div>
        <div><br>
        </div>
        <div>Yes it's worked! Thank you very much for the quick response
          :)<br>
        </div>
        <div><br>
        </div>
        <div>Cheers,</div>
        <div>Yufei<br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, 19 Mar 2020 at 15:59,
          Daniel-Constantin Mierla <<a
            href="mailto:miconda@gmail.com" moz-do-not-send="true">miconda@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div>
            <p>Hello,</p>
            <p>try with the patch from commit:</p>
            <p>  *
              <a
href="https://github.com/kamailio/kamailio/commit/5411eda4e44a487479d00433583a68a328aca9a3"
                target="_blank" moz-do-not-send="true">https://github.com/kamailio/kamailio/commit/5411eda4e44a487479d00433583a68a328aca9a3</a></p>
            <p>Cheers,<br>
              Daniel<br>
            </p>
            <div>On 19.03.20 15:01, Daniel-Constantin Mierla wrote:<br>
            </div>
            <blockquote type="cite">
              <p>Hello,</p>
              <p>can you try:</p>
              <p>kamcmd cfgutils.is_gflag i:1024</p>
              <p>Cheers,<br>
                Daniel<br>
              </p>
              <div>On 19.03.20 12:12, Yufei Tao wrote:<br>
              </div>
              <blockquote type="cite">
                <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></fieldset>
                <pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
              </blockquote>
              <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a></pre>
            </blockquote>
            <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a></pre>
          </div>
        </blockquote>
      </div>
    </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>