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

Arto Kuiri art666 at hotmail.com
Fri Feb 9 06:43:22 EST 2018


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 set_gflag 2

is this intended? If it is, I think documentation should mention it?

Tested this with 2.4.x

Regards,
Arto Kuiri

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180209/3b5211ff/attachment.html>


More information about the Users mailing list