Yes that's a good idea that I'll pick up :)
On Mar 20 2020, at 2:45 pm, Daniel-Constantin Mierla <[email protected]> wrote:
>
> Hello,
> ok, thanks for testing. I backported to 5.3 as well.
> 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.
> Cheers,
> Daniel
>
>
> On 19.03.20 17:35, Yufei Tao wrote:
> >
> > 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 <[email protected]
> > (mailto:[email protected])> 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 List
> > > > > [email protected]
> > > > > (mailto:[email protected])https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> > > > --
> > > > Daniel-Constantin Mierla -- www.asipto.com
> > > > (http://www.asipto.com)www.twitter.com/miconda
> > > > (http://www.twitter.com/miconda) -- www.linkedin.com/in/miconda
> > > > (http://www.linkedin.com/in/miconda)
> > > --
> > > Daniel-Constantin Mierla -- www.asipto.com
> > > (http://www.asipto.com)www.twitter.com/miconda
> > > (http://www.twitter.com/miconda) -- www.linkedin.com/in/miconda
> > > (http://www.linkedin.com/in/miconda)
> --
> Daniel-Constantin Mierla -- www.asipto.com
> (https://link.getmailspring.com/link/[email protected]/0?redirect=http%3A%2F%2Fwww.asipto.com&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn)www.twitter.com/miconda
>
> (https://link.getmailspring.com/link/[email protected]/1?redirect=http%3A%2F%2Fwww.twitter.com%2Fmiconda&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn)
> -- www.linkedin.com/in/miconda
> (https://link.getmailspring.com/link/[email protected]/2?redirect=http%3A%2F%2Fwww.linkedin.com%2Fin%2Fmiconda&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn)
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users