Re: [OpenSIPS-Users] gflags module script and MI command difference

2018-02-13 Thread Bogdan-Andrei Iancu
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

[OpenSIPS-Users] gflags module script and MI command difference

2018-02-09 Thread Arto Kuiri
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