[OpenSIPS-Users] Problem with gflags
Liviu Chircu
liviu at opensips.org
Thu Oct 27 15:00:29 UTC 2022
On 27.10.2022 17:55, Saint Michael wrote:
> I just need to know how to check for the gflag inside the code
> this:
> if (is_gflag("1")) {..}
> does not work, even if the flag is (1), as I wrote this test from the
> command line works
>
> opensips-cli -x mi is_gflag 1
> true
>
> As you can see, unless you can test for the gflag value inside the
> code, it cannot be used. The module gflag is of a great importance
> when managing Opensips, because it allows for an orderly shutdown
> without losing CDR, that is: money.
>
> Many thanks.
Script: is_gflag(0) (is bit "0" set?)
MI: is_gflag(1) (are all bits in bitmask "1" set?)
--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com
More information about the Users
mailing list