Upgrade 3CX to v18 and get it hosted free!

OpenSER module gflags

Author image

gflags module (global flags) keeps a bitmap of flags in shared memory and may be used to change behavior of server based on value of the flags. Example:


	if (is_gflag("1")) {
		t_relay("udp:10.0.0.1:5060");
	} else {
		t_relay("udp:10.0.0.2:5060");
	}

The benefit of this module is the value of the switch flags can be manipulated by external applications such as web interface or command line tools. The size of bitmap is 32.

The module exports external commands that can be used to change the global flags via OpenSER Management Interface (MI). The MI commands are:

  • set_gflag – set a global flag
  • reset_gflag – reset a global flag
  • is_gflag – test a global flag

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.