Hi Arto,
No, there should be no offset at all. The is_gflag function takes as
parameter the index of the bit to be checked, while the MI functions
(like set_gflag) take as parameter a bitmask with all the bits to be
operated with.
So, if you setting the bitmask 2 -> you set bit index 1
Hi,
I noticed that in opensips script gflags and MI commands gflags is off by 1.
if i have this kind of check:
if(is_gflag("1")) {
xlog("** MAINTANCE MODE \n");
}
and I try to set it on with MI command:
opensipsctl fifo set_gflag 1
it wont work, but this works:
opensipsctl fifo