%docentities; ]> UID Gflags Module Jiri Kuthan jiri@iptel.org 2004 FhG FOKUS Admin Guide
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 &kamailio;. Global flags can be accessed from the configuration script, for example: if (is_ugflag("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 &kamailio; or cmd line administration tools. One particular application of global flags could be runtime configuration changes without the need to restart &kamailio;.