Jiri
Kuthan
jiri@iptel.org
2004
FhG FOKUS
$Revision: 1.4 $
$Date: 2006/12/04 12:59:10 $

# Gflags Module

## Overview

The module implements global flags. The difference between the global flags and flags that can be used in the configuration file or AVPs is that they the scope of the global flags is not limited to the SIP message or transaction being processed. Global flags are always available, their contents is not forgotten when a SIP transaction gets destroyed in SER.

Global flags can be accessed from the configuration script, for example:

    if (is_gflag("1")) {
        t_relay_to_udp("10.0.0.1", "5060");
    } else {
        t_relay_to_udp("10.0.0.2", "5060");
    };

The value of the global flags can be manipulated by external tools such as the web interface of SER or cmd line administration tools. One particular application of global flags could be runtime configuration changes without the need to restart SER.