[SR-Users] is_gflag Always Returns FALSE

Yufei Tao yufei.tao at gmail.com
Thu Mar 19 17:35:18 CET 2020


Hi Daniel,

Yes it's worked! Thank you very much for the quick response :)

Cheers,
Yufei

On Thu, 19 Mar 2020 at 15:59, Daniel-Constantin Mierla <miconda at gmail.com>
wrote:

> Hello,
>
> try with the patch from commit:
>
>   *
> https://github.com/kamailio/kamailio/commit/5411eda4e44a487479d00433583a68a328aca9a3
>
> Cheers,
> Daniel
> On 19.03.20 15:01, Daniel-Constantin Mierla wrote:
>
> Hello,
>
> can you try:
>
> kamcmd cfgutils.is_gflag i:1024
>
> Cheers,
> Daniel
> On 19.03.20 12:12, Yufei Tao wrote:
>
> Hi,
>
> I got some problems with is_gflags:
> 1. Set the gflag:
> # kamcmd cfgutils.set_gflag 1024
> 2. Check the gflags - fine:
> # kamcmd cfgutils.get_gflags
> 0x400 (1024)
> 3. Check using is_gflag - problem:
> # kamcmd cfgutils.is_gflag 1024
> FALSE
>
> Seems is_gflag always returns FALSE somehow. Calling function is_gflag()
> from the cfg file seems to always return FALSE too.
>
> I tried this on Kamailio 5.3.2 and 5.3.3 and the behaviour is the same.
>
> Best regards,
> Yufei
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200319/611b1f86/attachment.html>


More information about the sr-users mailing list