<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">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">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">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">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">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a></pre>
</blockquote>
<pre cols="72">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a></pre>
</div>
</blockquote></div>