mirror of https://github.com/asterisk/asterisk
Merge eb9d327f30
into 8924258639
commit
4acfeca702
@ -0,0 +1,283 @@
|
|||||||
|
<!DOCTYPE docs SYSTEM "appdocsxml.dtd">
|
||||||
|
<?xml-stylesheet type="text/xsl" href="appdocsxml.xslt"?>
|
||||||
|
<docs xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||||
|
<configInfo name="res_ari" language="en_US">
|
||||||
|
<synopsis>HTTP binding for the Stasis API</synopsis>
|
||||||
|
<configFile name="ari.conf">
|
||||||
|
<configObject name="general">
|
||||||
|
<since>
|
||||||
|
<version>12.0.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>General configuration settings</synopsis>
|
||||||
|
<configOption name="enabled">
|
||||||
|
<since>
|
||||||
|
<version>12.0.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Enable/disable the ARI module</synopsis>
|
||||||
|
<description>
|
||||||
|
<para>This option enables or disables the ARI module.</para>
|
||||||
|
<note>
|
||||||
|
<para>ARI uses Asterisk's HTTP server, which must also be enabled in <filename>http.conf</filename>.</para>
|
||||||
|
</note>
|
||||||
|
</description>
|
||||||
|
<see-also>
|
||||||
|
<ref type="filename">http.conf</ref>
|
||||||
|
<ref type="link">https://docs.asterisk.org/Configuration/Core-Configuration/Asterisk-Builtin-mini-HTTP-Server/</ref>
|
||||||
|
</see-also>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="websocket_write_timeout" default="100">
|
||||||
|
<since>
|
||||||
|
<version>11.11.0</version>
|
||||||
|
<version>12.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>The timeout (in milliseconds) to set on WebSocket connections.</synopsis>
|
||||||
|
<description>
|
||||||
|
<para>If a websocket connection accepts input slowly, the timeout
|
||||||
|
for writes to it can be increased to keep it from being disconnected.
|
||||||
|
Value is in milliseconds.</para>
|
||||||
|
</description>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="pretty">
|
||||||
|
<since>
|
||||||
|
<version>12.0.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Responses from ARI are formatted to be human readable</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="auth_realm">
|
||||||
|
<since>
|
||||||
|
<version>12.0.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Realm to use for authentication. Defaults to Asterisk REST Interface.</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="allowed_origins">
|
||||||
|
<since>
|
||||||
|
<version>12.0.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Comma separated list of allowed origins, for Cross-Origin Resource Sharing. May be set to * to allow all origins.</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="channelvars">
|
||||||
|
<since>
|
||||||
|
<version>14.2.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Comma separated list of channel variables to display in channel json.</synopsis>
|
||||||
|
</configOption>
|
||||||
|
</configObject>
|
||||||
|
|
||||||
|
<configObject name="user">
|
||||||
|
<since>
|
||||||
|
<version>12.0.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Per-user configuration settings</synopsis>
|
||||||
|
<configOption name="type">
|
||||||
|
<since>
|
||||||
|
<version>13.30.0</version>
|
||||||
|
<version>16.7.0</version>
|
||||||
|
<version>17.1.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Define this configuration section as a user.</synopsis>
|
||||||
|
<description>
|
||||||
|
<enumlist>
|
||||||
|
<enum name="user"><para>Configure this section as a <replaceable>user</replaceable></para></enum>
|
||||||
|
</enumlist>
|
||||||
|
</description>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="read_only">
|
||||||
|
<since>
|
||||||
|
<version>13.30.0</version>
|
||||||
|
<version>16.7.0</version>
|
||||||
|
<version>17.1.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>When set to yes, user is only authorized for read-only requests</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="password">
|
||||||
|
<since>
|
||||||
|
<version>13.30.0</version>
|
||||||
|
<version>16.7.0</version>
|
||||||
|
<version>17.1.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Crypted or plaintext password (see password_format)</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="password_format">
|
||||||
|
<since>
|
||||||
|
<version>12.0.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>password_format may be set to plain (the default) or crypt. When set to crypt, crypt(3) is used to validate the password. A crypted password can be generated using mkpasswd -m sha-512. When set to plain, the password is in plaintext</synopsis>
|
||||||
|
</configOption>
|
||||||
|
</configObject>
|
||||||
|
<configObject name="outbound_websocket">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Outbound websocket configuration</synopsis>
|
||||||
|
<configOption name="type">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Must be "outbound_websocket".</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="uri">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Full URI to remote server.</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="protocols">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Comma separated list of protocols acceptable to the server.</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="apps">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Comma separated list of stasis applications that will use this websocket.</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="username">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Server authentication username if required.</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="password">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Server authentication password if required.</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="local_ari_user">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>The local ARI user to act as.</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="connection_type">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Single persistent connection or per-call configuration.</synopsis>
|
||||||
|
<description>
|
||||||
|
<enumlist>
|
||||||
|
<enum name="persistent"><para>Single persistent connection for all calls.</para></enum>
|
||||||
|
<enum name="per_call_config"><para>New connection for each call to the Stasis() dialplan app.</para></enum>
|
||||||
|
</enumlist>
|
||||||
|
</description>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="subscribe_all">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Subscribe applications to all event</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="connection_timeout">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Connection timeout (ms).</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="reconnect_attempts">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>On failure, how many times should reconnection be attempted?</synopsis>
|
||||||
|
<description>
|
||||||
|
<para>If <literal>0</literal>, no reconnection will be attempted and
|
||||||
|
an error will be returned immediately on failure. If a negative
|
||||||
|
number, reconnection will be attempted forever. Any other positive value
|
||||||
|
will attempt reconnection the specified number of times before returning
|
||||||
|
an error.
|
||||||
|
</para>
|
||||||
|
</description>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="reconnect_interval">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>How often should reconnection be attempted (ms)?</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="tls_enabled">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Enable TLS</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="ca_list_file">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>File containing the server's CA certificate. (optional)</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="ca_list_path">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>Path to a directory containing one or more hashed CA certificates. (optional)</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="cert_file">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>File containing a client certificate. (optional)</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="priv_key_file">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>File containing the client's private key. (optional)</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="verify_server_cert">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>If set to true, verify the server's certificate. (optional)</synopsis>
|
||||||
|
</configOption>
|
||||||
|
<configOption name="verify_server_hostname">
|
||||||
|
<since>
|
||||||
|
<version>20.14.0</version>
|
||||||
|
<version>21.9.0</version>
|
||||||
|
<version>22.4.0</version>
|
||||||
|
</since>
|
||||||
|
<synopsis>If set to true, verify that the server's hostname matches the common name in it's certificate. (optional)</synopsis>
|
||||||
|
</configOption>
|
||||||
|
</configObject>
|
||||||
|
</configFile>
|
||||||
|
</configInfo>
|
||||||
|
</docs>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue