README 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. mi_fifo Module
  2. Bogdan-Andrei Iancu
  3. Voice Sistem SRL
  4. Edited by
  5. Bogdan-Andrei Iancu
  6. Copyright © 2006 Voice Sistem SRL
  7. __________________________________________________________________
  8. Table of Contents
  9. 1. Admin Guide
  10. 1. Overview
  11. 2. FIFO command syntax
  12. 3. Dependencies
  13. 3.1. Kamailio Modules
  14. 3.2. External Libraries or Applications
  15. 4. Parameters
  16. 4.1. fifo_name (string)
  17. 4.2. fifo_mode (integer)
  18. 4.3. fifo_group (integer) fifo_group (string)
  19. 4.4. fifo_user (integer) fifo_group (string)
  20. 4.5. reply_dir (string)
  21. 4.6. reply_indent (string)
  22. 5. Functions
  23. 6. Example
  24. List of Examples
  25. 1.1. Set fifo_name parameter
  26. 1.2. Set fifo_mode parameter
  27. 1.3. Set fifo_group parameter
  28. 1.4. Set fifo_user parameter
  29. 1.5. Set reply_dir parameter
  30. 1.6. Set reply_indent parameter
  31. 1.7. FIFO request
  32. Chapter 1. Admin Guide
  33. Table of Contents
  34. 1. Overview
  35. 2. FIFO command syntax
  36. 3. Dependencies
  37. 3.1. Kamailio Modules
  38. 3.2. External Libraries or Applications
  39. 4. Parameters
  40. 4.1. fifo_name (string)
  41. 4.2. fifo_mode (integer)
  42. 4.3. fifo_group (integer) fifo_group (string)
  43. 4.4. fifo_user (integer) fifo_group (string)
  44. 4.5. reply_dir (string)
  45. 4.6. reply_indent (string)
  46. 5. Functions
  47. 6. Example
  48. 1. Overview
  49. This is a module which provides a FIFO transport layer implementation
  50. for Management Interface.
  51. 2. FIFO command syntax
  52. The external commands issued via FIFO interface must follow the
  53. following syntax:
  54. * request = first_line argument*
  55. * first_line = ':'command_name':'reply_fifo'\n'
  56. * argument = (arg_name '::' (arg_value)? ) | (arg_value)
  57. * arg_name = not-quoted_string
  58. * arg_value = not-quoted_string | '"' string '"'
  59. * not-quoted_string = string - {',",\n,\r}
  60. 3. Dependencies
  61. 3.1. Kamailio Modules
  62. 3.2. External Libraries or Applications
  63. 3.1. Kamailio Modules
  64. The following modules must be loaded before this module:
  65. * No dependencies on other Kamailio modules.
  66. 3.2. External Libraries or Applications
  67. The following libraries or applications must be installed before
  68. running Kamailio with this module loaded:
  69. * none
  70. 4. Parameters
  71. 4.1. fifo_name (string)
  72. 4.2. fifo_mode (integer)
  73. 4.3. fifo_group (integer) fifo_group (string)
  74. 4.4. fifo_user (integer) fifo_group (string)
  75. 4.5. reply_dir (string)
  76. 4.6. reply_indent (string)
  77. 4.1. fifo_name (string)
  78. The name of the FIFO file to be created for listening and reading
  79. external commands.
  80. Default value is NONE.
  81. Example 1.1. Set fifo_name parameter
  82. ...
  83. modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")
  84. ...
  85. 4.2. fifo_mode (integer)
  86. Permission to be used for creating the listening FIFO file. It follows
  87. the UNIX conventions.
  88. Default value is 0660 (rw-rw----).
  89. Example 1.2. Set fifo_mode parameter
  90. ...
  91. modparam("mi_fifo", "fifo_mode", 0600)
  92. ...
  93. 4.3. fifo_group (integer) fifo_group (string)
  94. Group to be used for creating the listening FIFO file.
  95. Default value is the inherited one.
  96. Example 1.3. Set fifo_group parameter
  97. ...
  98. modparam("mi_fifo", "fifo_group", 0)
  99. modparam("mi_fifo", "fifo_group", "root")
  100. ...
  101. 4.4. fifo_user (integer) fifo_group (string)
  102. User to be used for creating the listening FIFO file.
  103. Default value is the inherited one.
  104. Example 1.4. Set fifo_user parameter
  105. ...
  106. modparam("mi_fifo", "fifo_user", 0)
  107. modparam("mi_fifo", "fifo_user", "root")
  108. ...
  109. 4.5. reply_dir (string)
  110. Directory to be used for creating the reply FIFO files.
  111. Default value is “/tmp/”
  112. Example 1.5. Set reply_dir parameter
  113. ...
  114. modparam("mi_fifo", "reply_dir", "/home/kamailio/tmp/")
  115. ...
  116. 4.6. reply_indent (string)
  117. Strings to be used for line indentation. As the MI data structure is
  118. tree oriendeted, the depth level will printed as indentation.
  119. Default value is “"\t" (TAB)”.
  120. Example 1.6. Set reply_indent parameter
  121. ...
  122. modparam("mi_fifo", "reply_indent", " ")
  123. ...
  124. 5. Functions
  125. No function exported to be used from configuration file.
  126. 6. Example
  127. This is an example showing the FIFO format for the “get_statistics
  128. dialog: tm:” MI commad: response.
  129. Example 1.7. FIFO request
  130. :get_statistics:reply_fifo\n
  131. dialog:\n
  132. tm:\n
  133. \n