ccss.conf.sample 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. ;
  2. ; --- Call Completion Supplementary Services ---
  3. ;
  4. ; For more information about CCSS, see the CCSS user documentation
  5. ; https://wiki.asterisk.org/wiki/display/AST/Call+Completion+Supplementary+Services+(CCSS)
  6. ;
  7. [general]
  8. ; The cc_max_requests option is a global limit on the number of
  9. ; CC requests that may be in the Asterisk system at any time.
  10. ;
  11. ;cc_max_requests = 20
  12. ;
  13. ; The cc_STATE_devstate variables listed below can be used to change the
  14. ; default mapping of the internal state machine tracking the state of
  15. ; call completion to an Asterisk Device State value. The acceptable values
  16. ; that can be provided are as follows, with a description of what the
  17. ; equivalent device BLF that this maps to:
  18. ;
  19. ; UNKNOWN ; Device is valid but channel didn't know state
  20. ; NOT_INUSE ; Device is not used
  21. ; INUSE ; Device is in use
  22. ; BUSY ; Device is busy
  23. ; INVALID ; Device is invalid
  24. ; UNAVAILABLE ; Device is unavailable
  25. ; RINGING ; Device is ringing
  26. ; RINGINUSE ; Device is ringing *and* in use
  27. ; ONHOLD ; Device is on hold
  28. ;
  29. ; These states are used to generate DEVICE_STATE information that can be
  30. ; included with Asterisk hints for phones to subscribe to the state information
  31. ; or dialplan to check the state using the EXTENSION_STATE() function or
  32. ; the DEVICE_STATE() function.
  33. ;
  34. ; The states are in the format of: "ccss:TECH/ID" so an example of device
  35. ; SIP/3000 making a CallCompletionRequest() could be checked by looking at
  36. ; DEVICE_STATE(ccss:SIP/3000) or an Asterisk Hint could be generated such as
  37. ;
  38. ; [hint-context]
  39. ; exten => *843000,hint,ccss:SIP/3000
  40. ;
  41. ; and then accessed with EXTENSION_STATE(*843000@hint-context)
  42. ; or subscribed to with a BLF button on a phone.
  43. ;
  44. ; The available state mapping and default values are:
  45. ;
  46. ; cc_available_devstate = NOT_INUSE
  47. ; cc_offered_devstate = NOT_INUSE
  48. ; cc_caller_requested_devstate = NOT_INUSE
  49. ; cc_active_devstate = INUSE
  50. ; cc_callee_ready_devstate = INUSE
  51. ; cc_caller_busy_devstate = ONHOLD
  52. ; cc_recalling_devstate = RINGING
  53. ; cc_complete_devstate = NOT_INUSE
  54. ; cc_failed_devstate = NOT_INUSE
  55. ;
  56. ;============================================
  57. ; PLEASE READ THIS!!!
  58. ; The options described below should NOT be
  59. ; set in this file. Rather, they should be
  60. ; set per-device in a channel driver
  61. ; configuration file.
  62. ; PLEASE READ THIS!!!
  63. ;===========================================
  64. ;
  65. ; --------------------------------------------------------------------
  66. ; Timers
  67. ; --------------------------------------------------------------------
  68. ;There are three configurable timers for all types of CC: the
  69. ;cc_offer_timer, the ccbs_available_timer, and the ccnr_available_timer.
  70. ;In addition, when using a generic agent, there is a fourth timer,
  71. ;the cc_recall_timer. All timers are configured in seconds, and the
  72. ;values shown below are the defaults.
  73. ;
  74. ;When a caller is offered CCBS or CCNR, the cc_offer_timer will
  75. ;be started. If the caller does not request CC before the
  76. ;cc_offer_timer expires, then the caller will be unable to request
  77. ;CC for this call.
  78. ;
  79. ;cc_offer_timer = 20
  80. ;
  81. ;Once a caller has requested CC, then either the ccbs_available_timer
  82. ;or the ccnr_available_timer will run, depending on the service
  83. ;requested. The reason why there are two separate timers for CCBS
  84. ;and CCNR is that it is reasonable to want to have a shorter timeout
  85. ;configured for CCBS than for CCNR. If the available timer expires
  86. ;before the called party becomes available, then the CC attempt
  87. ;will have failed and monitoring of the called party will stop.
  88. ;
  89. ;ccbs_available_timer = 4800
  90. ;ccnr_available_timer = 7200
  91. ;
  92. ; When using a generic agent, the original caller is called back
  93. ; when one of the original called parties becomes available. The
  94. ; cc_recall_timer tells Asterisk how long it should let the original
  95. ; caller's phone ring before giving up. Please note that this parameter
  96. ; only affects operation when using a generic agent.
  97. ;
  98. ;cc_recall_timer = 20
  99. ; --------------------------------------------------------------------
  100. ; Policies
  101. ; --------------------------------------------------------------------
  102. ; Policy settings tell Asterisk how to behave and what sort of
  103. ; resources to allocate in order to facilitate CC. There are two
  104. ; settings to control the actions Asterisk will take.
  105. ;
  106. ; The cc_agent_policy describes the behavior that Asterisk will
  107. ; take when communicating with the caller during CC. There are
  108. ; three possible options.
  109. ;
  110. ;never: Never offer CC to the caller. Setting the cc_agent_policy
  111. ; to this value is the way to disable CC for a call.
  112. ;
  113. ;generic: A generic CC agent is one which uses no protocol-specific
  114. ; mechanisms to offer CC to the caller. Instead, the caller
  115. ; requests CC using a dialplan function. Due to internal
  116. ; restrictions, you should only use a generic CC agent on
  117. ; phones (i.e. not "trunks"). If you are using phones which
  118. ; do not support a protocol-specific method of using CC, then
  119. ; generic CC agents are what you should use.
  120. ;
  121. ;native: A native CC agent is one which uses protocol-specific
  122. ; signaling to offer CC to the caller and accept CC requests
  123. ; from the caller. The supported protocols for native CC
  124. ; agents are SIP, ISDN ETSI PTP, ISDN ETSI PTMP, and Q.SIG
  125. ;cc_agent_policy=never
  126. ;
  127. ; The cc_monitor_policy describes the behavior that Asterisk will
  128. ; take when communicating with the called party during CC. There
  129. ; are four possible options.
  130. ;
  131. ;never: Analogous to the cc_agent_policy setting. We will never
  132. ; attempt to request CC services on this interface.
  133. ;
  134. ;generic: Analogous to the cc_agent_policy setting. We will monitor
  135. ; the called party's progress using protocol-agnostic
  136. ; capabilities. Like with generic CC agents, generic CC
  137. ; monitors should only be used for phones.
  138. ;
  139. ;native: Analogous to the cc_agent_policy setting. We will use
  140. ; protocol-specific methods to request CC from this interface
  141. ; and to monitor the interface for availability.
  142. ;
  143. ;always: If an interface is set to "always," then we will accept
  144. ; protocol-specific CC offers from the caller and use
  145. ; a native CC monitor for the remainder of the CC transaction.
  146. ; However, if the interface does not offer protocol-specific
  147. ; CC, then we will fall back to using a generic CC monitor
  148. ; instead. This is a good setting to use for phones for which
  149. ; you do not know if they support protocol-specific CC
  150. ; methodologies.
  151. ;cc_monitor_policy=never
  152. ;
  153. ;
  154. ; --------------------------------------------------------------------
  155. ; Limits
  156. ; --------------------------------------------------------------------
  157. ;
  158. ; The use of CC requires Asterisk to potentially use more memory than
  159. ; some administrators would like. As such, it is a good idea to limit
  160. ; the number of CC requests that can be in the system at a given time.
  161. ; The values shown below are the defaults.
  162. ;
  163. ; The cc_max_agents setting limits the number of outstanding CC
  164. ; requests a caller may have at any given time. Please note that due
  165. ; to implementation restrictions, this setting is ignored when using
  166. ; generic CC agents. Generic CC agents may only have one outstanding
  167. ; CC request.
  168. ;
  169. ;cc_max_agents = 5
  170. ;
  171. ; The cc_max_monitors setting limits the number of outstanding CC
  172. ; requests can be made to a specific interface at a given time.
  173. ;
  174. ;cc_max_monitors = 5
  175. ;
  176. ; --------------------------------------------------------------------
  177. ; Other
  178. ; --------------------------------------------------------------------
  179. ;
  180. ; When using a generic CC agent, the caller who requested CC will be
  181. ; called back when a called party becomes available. When the caller
  182. ; answers his phone, the administrator may opt to have a macro run.
  183. ; What this macro does is up to the administrator. By default there
  184. ; is no callback macro configured.
  185. ;
  186. ;cc_callback_macro=
  187. ;
  188. ; Alternatively, the administrator may run a subroutine. By default
  189. ; there is no callback subroutine configured. The subroutine should
  190. ; be specified in the format: [[context,]exten,]priority
  191. ;
  192. ;cc_callback_sub=
  193. ;
  194. ; When using an ISDN phone and a generic CC agent, Asterisk is unable
  195. ; to determine the dialstring that should be used when calling back
  196. ; the original caller. Furthermore, if you desire to use any dialstring-
  197. ; specific options, such as distinctive ring, you must set this
  198. ; configuration option. For non-ISDN phones, it is not necessary to
  199. ; set this, since Asterisk can determine the dialstring to use since
  200. ; it is identical to the name of the calling device. By default, there
  201. ; is no cc_agent_dialstring set.
  202. ;
  203. ;cc_agent_dialstring=