| 1 | <!DOCTYPE docs SYSTEM "appdocsxml.dtd"> |
| 2 | <?xml-stylesheet type="text/xsl" href="appdocsxml.xslt"?> |
| 3 | <docs xmlns:xi="http://www.w3.org/2001/XInclude"> |
| 4 | <configInfo name="res_stir_shaken" language="en_US"> |
| 5 | <synopsis>STIR/SHAKEN module for Asterisk</synopsis> |
| 6 | <configFile name="stir_shaken.conf"> |
| 7 | <configObject name="attestation"> |
| 8 | <since> |
| 9 | <version>18.22.0</version> |
| 10 | <version>20.7.0</version> |
| 11 | <version>21.2.0</version> |
| 12 | </since> |
| 13 | <synopsis>STIR/SHAKEN attestation options</synopsis> |
| 14 | <configOption name="global_disable" default="false"> |
| 15 | <since> |
| 16 | <version>18.22.0</version> |
| 17 | <version>20.7.0</version> |
| 18 | <version>21.2.0</version> |
| 19 | </since> |
| 20 | <synopsis>Globally disable verification</synopsis> |
| 21 | </configOption> |
| 22 | <configOption name="private_key_file" default=""> |
| 23 | <since> |
| 24 | <version>18.22.0</version> |
| 25 | <version>20.7.0</version> |
| 26 | <version>21.2.0</version> |
| 27 | </since> |
| 28 | <synopsis>File path to a certificate</synopsis> |
| 29 | </configOption> |
| 30 | <configOption name="public_cert_url" default=""> |
| 31 | <since> |
| 32 | <version>18.22.0</version> |
| 33 | <version>20.7.0</version> |
| 34 | <version>21.2.0</version> |
| 35 | </since> |
| 36 | <synopsis>URL to the public certificate</synopsis> |
| 37 | <description><para> |
| 38 | Must be a valid http, or https, URL. |
| 39 | </para></description> |
| 40 | </configOption> |
| 41 | <configOption name="attest_level"> |
| 42 | <since> |
| 43 | <version>18.22.0</version> |
| 44 | <version>20.7.0</version> |
| 45 | <version>21.2.0</version> |
| 46 | </since> |
| 47 | <synopsis>Attestation level</synopsis> |
| 48 | </configOption> |
| 49 | <configOption name="unknown_tn_attest_level"> |
| 50 | <since> |
| 51 | <version>20.12.0</version> |
| 52 | <version>21.7.0</version> |
| 53 | <version>22.2.0</version> |
| 54 | </since> |
| 55 | <synopsis>Attestation level to use for unknown TNs</synopsis> |
| 56 | <description><para> |
| 57 | Normally if a callerid TN isn't configured in stir_shaken.conf |
| 58 | no Identity header will be created. If this option is set, |
| 59 | however, an Identity header will be sent using this |
| 60 | attestation level. Since there's no TN object, you must |
| 61 | ensure that a private_key_file and public_cert_url are |
| 62 | configured in the attestation or profile objects for |
| 63 | this to work. |
| 64 | </para></description> |
| 65 | </configOption> |
| 66 | <configOption name="check_tn_cert_public_url" default="false"> |
| 67 | <since> |
| 68 | <version>18.22.0</version> |
| 69 | <version>20.7.0</version> |
| 70 | <version>21.2.0</version> |
| 71 | </since> |
| 72 | <synopsis>On load, Retrieve all TN's certificates and validate their dates</synopsis> |
| 73 | </configOption> |
| 74 | <configOption name="send_mky" default="no"> |
| 75 | <since> |
| 76 | <version>18.22.0</version> |
| 77 | <version>20.7.0</version> |
| 78 | <version>21.2.0</version> |
| 79 | </since> |
| 80 | <synopsis>Send a media key (mky) grant in the attestation for DTLS calls. |
| 81 | (not common)</synopsis> |
| 82 | </configOption> |
| 83 | </configObject> |
| 84 | <configObject name="tn"> |
| 85 | <since> |
| 86 | <version>18.22.0</version> |
| 87 | <version>20.7.0</version> |
| 88 | <version>21.2.0</version> |
| 89 | </since> |
| 90 | <synopsis>STIR/SHAKEN TN options</synopsis> |
| 91 | <configOption name="type"> |
| 92 | <since> |
| 93 | <version>18.22.0</version> |
| 94 | <version>20.7.0</version> |
| 95 | <version>21.2.0</version> |
| 96 | </since> |
| 97 | <synopsis>Must be of type 'tn'.</synopsis> |
| 98 | </configOption> |
| 99 | <configOption name="private_key_file" default=""> |
| 100 | <since> |
| 101 | <version>18.22.0</version> |
| 102 | <version>20.7.0</version> |
| 103 | <version>21.2.0</version> |
| 104 | </since> |
| 105 | <synopsis>File path to a certificate</synopsis> |
| 106 | </configOption> |
| 107 | <configOption name="public_cert_url" default=""> |
| 108 | <since> |
| 109 | <version>18.22.0</version> |
| 110 | <version>20.7.0</version> |
| 111 | <version>21.2.0</version> |
| 112 | </since> |
| 113 | <synopsis>URL to the public certificate</synopsis> |
| 114 | <description><para> |
| 115 | Must be a valid http, or https, URL. |
| 116 | </para></description> |
| 117 | </configOption> |
| 118 | <configOption name="attest_level"> |
| 119 | <since> |
| 120 | <version>18.22.0</version> |
| 121 | <version>20.7.0</version> |
| 122 | <version>21.2.0</version> |
| 123 | </since> |
| 124 | <synopsis>Attestation level</synopsis> |
| 125 | </configOption> |
| 126 | <configOption name="check_tn_cert_public_url" default="false"> |
| 127 | <since> |
| 128 | <version>18.22.0</version> |
| 129 | <version>20.7.0</version> |
| 130 | <version>21.2.0</version> |
| 131 | </since> |
| 132 | <synopsis>On load, Retrieve all TN's certificates and validate their dates</synopsis> |
| 133 | </configOption> |
| 134 | <configOption name="send_mky" default="no"> |
| 135 | <since> |
| 136 | <version>18.22.0</version> |
| 137 | <version>20.7.0</version> |
| 138 | <version>21.2.0</version> |
| 139 | </since> |
| 140 | <synopsis>Send a media key (mky) grant in the attestation for DTLS calls. |
| 141 | (not common)</synopsis> |
| 142 | </configOption> |
| 143 | </configObject> |
| 144 | <configObject name="verification"> |
| 145 | <since> |
| 146 | <version>18.22.0</version> |
| 147 | <version>20.7.0</version> |
| 148 | <version>21.2.0</version> |
| 149 | </since> |
| 150 | <synopsis>STIR/SHAKEN verification options</synopsis> |
| 151 | <configOption name="global_disable" default="false"> |
| 152 | <since> |
| 153 | <version>18.22.0</version> |
| 154 | <version>20.7.0</version> |
| 155 | <version>21.2.0</version> |
| 156 | </since> |
| 157 | <synopsis>Globally disable verification</synopsis> |
| 158 | </configOption> |
| 159 | <configOption name="load_system_certs" default=""> |
| 160 | <since> |
| 161 | <version>18.22.0</version> |
| 162 | <version>20.7.0</version> |
| 163 | <version>21.2.0</version> |
| 164 | </since> |
| 165 | <synopsis>A boolean indicating whether trusted CA certificates should be loaded from the system</synopsis> |
| 166 | </configOption> |
| 167 | <configOption name="ca_file" default=""> |
| 168 | <since> |
| 169 | <version>18.22.0</version> |
| 170 | <version>20.7.0</version> |
| 171 | <version>21.2.0</version> |
| 172 | </since> |
| 173 | <synopsis>Path to a file containing one or more CA certs in PEM format</synopsis> |
| 174 | <description> |
| 175 | <para>These certs are used to verify the chain of trust for the |
| 176 | certificate retrieved from the X5U Identity header parameter. This |
| 177 | file must have the root CA certificate, the certificate of the |
| 178 | issuer of the X5U certificate, and any intermediate certificates |
| 179 | between them.</para> |
| 180 | <para> |
| 181 | See https://docs.asterisk.org/Deployment/STIR-SHAKEN/ for more information. |
| 182 | </para> |
| 183 | </description> |
| 184 | </configOption> |
| 185 | <configOption name="ca_path" default=""> |
| 186 | <since> |
| 187 | <version>18.22.0</version> |
| 188 | <version>20.7.0</version> |
| 189 | <version>21.2.0</version> |
| 190 | </since> |
| 191 | <synopsis>Path to a directory containing one or more hashed CA certs</synopsis> |
| 192 | <description> |
| 193 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='ca_file']/description/node())" /> |
| 194 | <para>For this option, the individual certificates must be placed in |
| 195 | the directory specified and hashed using the <literal>openssl rehash</literal> |
| 196 | command.</para> |
| 197 | <para> |
| 198 | See https://docs.asterisk.org/Deployment/STIR-SHAKEN/ for more information. |
| 199 | </para> |
| 200 | </description> |
| 201 | </configOption> |
| 202 | <configOption name="crl_file" default=""> |
| 203 | <since> |
| 204 | <version>18.22.0</version> |
| 205 | <version>20.7.0</version> |
| 206 | <version>21.2.0</version> |
| 207 | </since> |
| 208 | <synopsis>Path to a file containing one or more CRLs in PEM format</synopsis> |
| 209 | <description> |
| 210 | <para>If you with to check if the certificate in the X5U Identity header |
| 211 | parameter has been revoked, you'll need the certificate revocation |
| 212 | list generated by the issuer.</para> |
| 213 | <para> |
| 214 | See https://docs.asterisk.org/Deployment/STIR-SHAKEN/ for more information. |
| 215 | </para> |
| 216 | </description> |
| 217 | </configOption> |
| 218 | <configOption name="crl_path" default=""> |
| 219 | <since> |
| 220 | <version>18.22.0</version> |
| 221 | <version>20.7.0</version> |
| 222 | <version>21.2.0</version> |
| 223 | </since> |
| 224 | <synopsis>Path to a directory containing one or more hashed CRLs</synopsis> |
| 225 | <description> |
| 226 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='crl_file']/description/node())" /> |
| 227 | <para>For this option, the individual CRLs must be placed in |
| 228 | the directory specified and hashed using the <literal>openssl rehash</literal> |
| 229 | command.</para> |
| 230 | <para> |
| 231 | See https://docs.asterisk.org/Deployment/STIR-SHAKEN/ for more information. |
| 232 | </para> |
| 233 | </description> |
| 234 | </configOption> |
| 235 | <configOption name="untrusted_cert_file" default=""> |
| 236 | <since> |
| 237 | <version>18.22.0</version> |
| 238 | <version>20.7.0</version> |
| 239 | <version>21.2.0</version> |
| 240 | </since> |
| 241 | <synopsis>Path to a file containing one or more untrusted cert in PEM format used to verify CRLs</synopsis> |
| 242 | <description> |
| 243 | <para>If you with to check if the certificate in the X5U Identity header |
| 244 | parameter has been revoked, you'll need the certificate revocation |
| 245 | list generated by the issuer. Unfortunately, sometimes the CRLs are signed by a |
| 246 | different CA than the certificate being verified. In this case, you |
| 247 | may need to provide the untrusted certificate to verify the CRL.</para> |
| 248 | <para> |
| 249 | See https://docs.asterisk.org/Deployment/STIR-SHAKEN/ for more information. |
| 250 | </para> |
| 251 | </description> |
| 252 | </configOption> |
| 253 | <configOption name="untrusted_cert_path" default=""> |
| 254 | <since> |
| 255 | <version>18.22.0</version> |
| 256 | <version>20.7.0</version> |
| 257 | <version>21.2.0</version> |
| 258 | </since> |
| 259 | <synopsis>Path to a directory containing one or more hashed untrusted certs used to verify CRLs</synopsis> |
| 260 | <description> |
| 261 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='untrusted_cert_file']/description/node())" /> |
| 262 | <para>For this option, the individual certificates must be placed in |
| 263 | the directory specified and hashed using the <literal>openssl rehash</literal> |
| 264 | command.</para> |
| 265 | <para> |
| 266 | See https://docs.asterisk.org/Deployment/STIR-SHAKEN/ for more information. |
| 267 | </para> |
| 268 | </description> |
| 269 | </configOption> |
| 270 | <configOption name="cert_cache_dir" default=""> |
| 271 | <since> |
| 272 | <version>18.22.0</version> |
| 273 | <version>20.7.0</version> |
| 274 | <version>21.2.0</version> |
| 275 | </since> |
| 276 | <synopsis>Directory to cache retrieved verification certs</synopsis> |
| 277 | </configOption> |
| 278 | <configOption name="curl_timeout" default="2"> |
| 279 | <since> |
| 280 | <version>18.22.0</version> |
| 281 | <version>20.7.0</version> |
| 282 | <version>21.2.0</version> |
| 283 | </since> |
| 284 | <synopsis>Maximum time to wait to CURL certificates</synopsis> |
| 285 | </configOption> |
| 286 | <configOption name="max_cache_entry_age" default="60"> |
| 287 | <since> |
| 288 | <version>18.22.0</version> |
| 289 | <version>20.7.0</version> |
| 290 | <version>21.2.0</version> |
| 291 | </since> |
| 292 | <synopsis>Number of seconds a cache entry may be behind current time</synopsis> |
| 293 | </configOption> |
| 294 | <configOption name="max_cache_size" default="1000"> |
| 295 | <since> |
| 296 | <version>18.22.0</version> |
| 297 | <version>20.7.0</version> |
| 298 | <version>21.2.0</version> |
| 299 | </since> |
| 300 | <synopsis>Maximum size to use for caching public keys</synopsis> |
| 301 | </configOption> |
| 302 | <configOption name="max_iat_age" default="15"> |
| 303 | <since> |
| 304 | <version>18.22.0</version> |
| 305 | <version>20.7.0</version> |
| 306 | <version>21.2.0</version> |
| 307 | </since> |
| 308 | <synopsis>Number of seconds an iat grant may be behind current time</synopsis> |
| 309 | </configOption> |
| 310 | <configOption name="max_date_header_age" default="15"> |
| 311 | <since> |
| 312 | <version>18.22.0</version> |
| 313 | <version>20.7.0</version> |
| 314 | <version>21.2.0</version> |
| 315 | </since> |
| 316 | <synopsis>Number of seconds a SIP Date header may be behind current time</synopsis> |
| 317 | </configOption> |
| 318 | <configOption name="failure_action" default="continue"> |
| 319 | <since> |
| 320 | <version>18.22.0</version> |
| 321 | <version>20.7.0</version> |
| 322 | <version>21.2.0</version> |
| 323 | </since> |
| 324 | <synopsis>The default failure action when not set on a profile</synopsis> |
| 325 | <description> |
| 326 | <enumlist> |
| 327 | <enum name="continue"> |
| 328 | <para>If set to <literal>continue</literal>, continue and let |
| 329 | the dialplan decide what action to take.</para> |
| 330 | </enum> |
| 331 | <enum name="reject_request"> |
| 332 | <para>If set to <literal>reject_request</literal>, reject the incoming |
| 333 | request with response codes defined in RFC8224. |
| 334 | </para> |
| 335 | </enum> |
| 336 | <enum name="continue_return_reason"> |
| 337 | <para>If set to <literal>return_reason</literal>, continue to the |
| 338 | dialplan but add a <literal>Reason</literal> header to the sender in |
| 339 | the next provisional response.</para> |
| 340 | </enum> |
| 341 | </enumlist> |
| 342 | </description> |
| 343 | </configOption> |
| 344 | <configOption name="use_rfc9410_responses" default="no"> |
| 345 | <since> |
| 346 | <version>18.22.0</version> |
| 347 | <version>20.7.0</version> |
| 348 | <version>21.2.0</version> |
| 349 | </since> |
| 350 | <synopsis>RFC9410 uses the STIR protocol on Reason headers |
| 351 | instead of the SIP protocol</synopsis> |
| 352 | </configOption> |
| 353 | <configOption name="ignore_sip_date_header" default="no"> |
| 354 | <since> |
| 355 | <version>20.15.0</version> |
| 356 | <version>21.10.0</version> |
| 357 | <version>22.5.0</version> |
| 358 | </since> |
| 359 | <synopsis>When set to true, will cause the verification process to not consider a |
| 360 | missing or invalid SIP "Date" header to be a failure. This will make the |
| 361 | IAT the sole "truth" for Date in the verification process.</synopsis> |
| 362 | </configOption> |
| 363 | <configOption name="relax_x5u_port_scheme_restrictions" default="no"> |
| 364 | <since> |
| 365 | <version>18.22.0</version> |
| 366 | <version>20.7.0</version> |
| 367 | <version>21.2.0</version> |
| 368 | </since> |
| 369 | <synopsis>Relaxes check for "https" and port 443 or 8443 |
| 370 | in incoming Identity header x5u URLs.</synopsis> |
| 371 | </configOption> |
| 372 | <configOption name="relax_x5u_path_restrictions" default="no"> |
| 373 | <since> |
| 374 | <version>18.22.0</version> |
| 375 | <version>20.7.0</version> |
| 376 | <version>21.2.0</version> |
| 377 | </since> |
| 378 | <synopsis>Relaxes check for query parameters, user/password, etc. |
| 379 | in incoming Identity header x5u URLs.</synopsis> |
| 380 | </configOption> |
| 381 | <configOption name="x5u_acl" default=""> |
| 382 | <since> |
| 383 | <version>18.22.0</version> |
| 384 | <version>20.7.0</version> |
| 385 | <version>21.2.0</version> |
| 386 | </since> |
| 387 | <synopsis>An existing ACL from acl.conf to use when checking |
| 388 | hostnames in incoming Identity header x5u URLs.</synopsis> |
| 389 | </configOption> |
| 390 | <configOption name="x5u_permit" default=""> |
| 391 | <since> |
| 392 | <version>18.22.0</version> |
| 393 | <version>20.7.0</version> |
| 394 | <version>21.2.0</version> |
| 395 | </since> |
| 396 | <synopsis>An IP or subnet to permit when checking |
| 397 | hostnames in incoming Identity header x5u URLs.</synopsis> |
| 398 | </configOption> |
| 399 | <configOption name="x5u_deny" default=""> |
| 400 | <since> |
| 401 | <version>18.22.0</version> |
| 402 | <version>20.7.0</version> |
| 403 | <version>21.2.0</version> |
| 404 | </since> |
| 405 | <synopsis>An IP or subnet to deny checking |
| 406 | hostnames in incoming Identity header x5u URLs.</synopsis> |
| 407 | </configOption> |
| 408 | </configObject> |
| 409 | <configObject name="profile"> |
| 410 | <since> |
| 411 | <version>18.22.0</version> |
| 412 | <version>20.7.0</version> |
| 413 | <version>21.2.0</version> |
| 414 | </since> |
| 415 | <synopsis>STIR/SHAKEN profile configuration options</synopsis> |
| 416 | <configOption name="type"> |
| 417 | <since> |
| 418 | <version>18.22.0</version> |
| 419 | <version>20.7.0</version> |
| 420 | <version>21.2.0</version> |
| 421 | </since> |
| 422 | <synopsis>Must be of type 'profile'.</synopsis> |
| 423 | </configOption> |
| 424 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='load_system_certs'])" /> |
| 425 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='ca_file'])" /> |
| 426 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='ca_path'])" /> |
| 427 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='crl_file'])" /> |
| 428 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='crl_path'])" /> |
| 429 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='untrusted_cert_file'])" /> |
| 430 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='untrusted_cert_path'])" /> |
| 431 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='cert_cache_dir'])" /> |
| 432 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='curl_timeout'])" /> |
| 433 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='max_iat_age'])" /> |
| 434 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='max_date_header_age'])" /> |
| 435 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='ignore_sip_date_header'])" /> |
| 436 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='max_cache_entry_age'])" /> |
| 437 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='max_cache_size'])" /> |
| 438 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='failure_action'])" /> |
| 439 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='use_rfc9410_responses'])" /> |
| 440 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='relax_x5u_port_scheme_restrictions'])" /> |
| 441 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='relax_x5u_path_restrictions'])" /> |
| 442 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='x5u_acl'])" /> |
| 443 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='x5u_permit'])" /> |
| 444 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='verification']/configOption[@name='x5u_deny'])" /> |
| 445 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='attestation']/configOption[@name='check_tn_cert_public_url'])" /> |
| 446 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='attestation']/configOption[@name='private_key_file'])" /> |
| 447 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='attestation']/configOption[@name='public_cert_url'])" /> |
| 448 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='attestation']/configOption[@name='attest_level'])" /> |
| 449 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='attestation']/configOption[@name='unknown_tn_attest_level'])" /> |
| 450 | <xi:include xpointer="xpointer(/docs/configInfo[@name='res_stir_shaken']/configFile[@name='stir_shaken.conf']/configObject[@name='attestation']/configOption[@name='send_mky'])" /> |
| 451 | <configOption name="endpoint_behavior" default="off"> |
| 452 | <since> |
| 453 | <version>18.22.0</version> |
| 454 | <version>20.7.0</version> |
| 455 | <version>21.2.0</version> |
| 456 | </since> |
| 457 | <synopsis>Actions performed when an endpoint references this profile</synopsis> |
| 458 | <description> |
| 459 | <enumlist> |
| 460 | <enum name="off"> |
| 461 | <para>Don't do any STIR/SHAKEN processing.</para> |
| 462 | </enum> |
| 463 | <enum name="attest"> |
| 464 | <para>Attest on outgoing calls.</para> |
| 465 | </enum> |
| 466 | <enum name="verify"> |
| 467 | <para>Verify incoming calls.</para> |
| 468 | </enum> |
| 469 | <enum name="on"> |
| 470 | <para>Attest outgoing calls and verify incoming calls.</para> |
| 471 | </enum> |
| 472 | </enumlist> |
| 473 | </description> |
| 474 | </configOption> |
| 475 | </configObject> |
| 476 | </configFile> |
| 477 | </configInfo> |
| 478 | <function name="STIR_SHAKEN" language="en_US"> |
| 479 | <since> |
| 480 | <version>16.15.0</version> |
| 481 | </since> |
| 482 | <synopsis> |
| 483 | Gets the number of STIR/SHAKEN results or a specific STIR/SHAKEN value from a result on the channel. |
| 484 | </synopsis> |
| 485 | <syntax> |
| 486 | <parameter name="index" required="true"> |
| 487 | <para>The index of the STIR/SHAKEN result to get. If only 'count' is passed in, gets the number of STIR/SHAKEN results instead.</para> |
| 488 | </parameter> |
| 489 | <parameter name="value" required="false"> |
| 490 | <para>The value to get from the STIR/SHAKEN result. Only used when an index is passed in (instead of 'count'). Allowable values:</para> |
| 491 | <enumlist> |
| 492 | <enum name = "identity" /> |
| 493 | <enum name = "attestation" /> |
| 494 | <enum name = "verify_result" /> |
| 495 | </enumlist> |
| 496 | </parameter> |
| 497 | </syntax> |
| 498 | <description> |
| 499 | <para>This function will either return the number of STIR/SHAKEN identities, or return information on the specified identity. |
| 500 | To get the number of identities, just pass 'count' as the only parameter to the function. If you want to get information on a |
| 501 | specific STIR/SHAKEN identity, you can get the number of identities and then pass an index as the first parameter and one of |
| 502 | the values you would like to retrieve as the second parameter. |
| 503 | </para> |
| 504 | <example title="Get count and retrieve value"> |
| 505 | same => n,NoOp(Number of STIR/SHAKEN identities: ${STIR_SHAKEN(count)}) |
| 506 | same => n,NoOp(Identity ${STIR_SHAKEN(0, identity)} has attestation level ${STIR_SHAKEN(0, attestation)}) |
| 507 | </example> |
| 508 | </description> |
| 509 | </function> |
| 510 | <function name="STIR_SHAKEN_ATTESTATION" language="en_US"> |
| 511 | <since> |
| 512 | <version>20.17.0</version> |
| 513 | <version>22.7.0</version> |
| 514 | <version>23.1.0</version> |
| 515 | </since> |
| 516 | <synopsis> |
| 517 | Sets STIR/SHAKEN Attestation parameters on an outgoing channel. |
| 518 | </synopsis> |
| 519 | <syntax> |
| 520 | <parameter name="field" required="true"> |
| 521 | <para>The attestation field to set. Allowable values:</para> |
| 522 | <enumlist> |
| 523 | <enum name = "suppress"> |
| 524 | <para> |
| 525 | When set to <literal>true</literal>, attestation is suppressed |
| 526 | on the channel regardless of the profile on the endpoint. |
| 527 | </para> |
| 528 | </enum> |
| 529 | </enumlist> |
| 530 | </parameter> |
| 531 | </syntax> |
| 532 | <description> |
| 533 | <para>When used on an outgoing channel, this function can override the |
| 534 | profile on an endpoint. Currently, only the ability to suppress |
| 535 | attestation is supported. |
| 536 | </para> |
| 537 | <para> |
| 538 | </para> |
| 539 | <example title="Suppress attestation on an outgoing channel"> |
| 540 | same => n,Set(STIR_SHAKEN_ATTESTATION(suppress)=yes) |
| 541 | </example> |
| 542 | </description> |
| 543 | </function> |
| 544 | </docs> |