Debian Codegraph @

configs/samples/ccss.conf.sample

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