uid_gflags.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
  4. <book id="gflags" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <bookinfo>
  6. <title>UID Gflags Module</title>
  7. <authorgroup>
  8. <author>
  9. <firstname>Jiri</firstname>
  10. <surname>Kuthan</surname>
  11. <email>[email protected]</email>
  12. </author>
  13. </authorgroup>
  14. <copyright>
  15. <year>2004</year>
  16. <holder>FhG FOKUS</holder>
  17. </copyright>
  18. </bookinfo>
  19. <toc></toc>
  20. <chapter>
  21. <title>Admin Guide</title>
  22. <section id="uid_gflags.overview">
  23. <title>Overview</title>
  24. <para>
  25. The module implements global flags. The difference between the
  26. global flags and flags that can be used in the configuration file
  27. or AVPs is that they the scope of the global flags is not limited
  28. to the SIP message or transaction being processed. Global flags are
  29. always available, their contents is not forgotten when a SIP
  30. transaction gets destroyed in SER.
  31. </para>
  32. <para>
  33. Global flags can be accessed from the configuration script, for example:
  34. </para>
  35. <programlisting>
  36. if (is_ugflag("1")) {
  37. t_relay_to_udp("10.0.0.1", "5060");
  38. } else {
  39. t_relay_to_udp("10.0.0.2", "5060");
  40. };
  41. </programlisting>
  42. <para>
  43. The value of the global flags can be manipulated by external tools
  44. such as the web interface of SER or cmd line administration
  45. tools. One particular application of global flags could be runtime
  46. configuration changes without the need to restart SER.
  47. </para>
  48. </section>
  49. <xi:include href="params.xml"/>
  50. <xi:include href="functions.xml"/>
  51. <xi:include href="fifo.xml"/>
  52. <xi:include href="xmlrpc.xml"/>
  53. </chapter>
  54. </book>