| 1 |
; Common WebSocket Client Configuration for res_websocket_client |
| 2 |
; |
| 3 |
;[connection1] ; The connection name |
| 4 |
;type = websocket_client ; Must be "websocket_client" |
| 5 |
;connection_type = persistent : "persistent" or "per_call_config" |
| 6 |
; Default: none |
| 7 |
;uri = ws://localhost:8765 ; The URI needed to contact the remote server. |
| 8 |
; If you've enabled tls, use "wss" for the scheme. |
| 9 |
; Default: none |
| 10 |
;protocols = ari ; The websocket protocol expected by the server. |
| 11 |
; Default: none |
| 12 |
;username = username ; An authentication username if required by the server. |
| 13 |
; Default: none |
| 14 |
;password = password ; The authentication password for the username. |
| 15 |
; Default: none |
| 16 |
;connection_timeout = 500 ; Connection timeout in milliseconds. |
| 17 |
; Default: 500 |
| 18 |
;reconnect_interval = 1000 ; Number of milliseconds between (re)connection |
| 19 |
; attempts. |
| 20 |
; Default: 500 |
| 21 |
;reconnect_attempts = 4 ; For per_call connections, this is the number of |
| 22 |
; (re)connection attempts to make before returning an |
| 23 |
; and terminating the call. Persistent connections |
| 24 |
; always retry forever but this setting will control |
| 25 |
; how often failure messages are logged. |
| 26 |
; Default: 4 for both connection types. |
| 27 |
;tls_enabled = no ; Set to "yes" to enable TLS connections. |
| 28 |
; Default: no |
| 29 |
;ca_list_file = /etc/pki/tls/cert.pem |
| 30 |
; A file containing all CA certificates needed |
| 31 |
; for the connection. Not needed if your server |
| 32 |
; has a certificate from a recognized CA. |
| 33 |
; Default: none |
| 34 |
;ca_list_path = /etc/pki/ca-trust/extracted/pem/directory-hash |
| 35 |
; A directory containing individual CA certificates |
| 36 |
; as an alternative to ca_list_file. Rarely needed. |
| 37 |
; Default: none |
| 38 |
;cert_file = /etc/asterisk/cert.pem |
| 39 |
; If the server requires you to have a client |
| 40 |
; certificate, specify it here and if it wasn't |
| 41 |
; issued by a recognized CA, make sure the matching |
| 42 |
; CA certificate is available in ca_list_file or |
| 43 |
; ca_list_path. |
| 44 |
; Default: none |
| 45 |
;priv_key_file = /etc/asterisk/privkey.pem |
| 46 |
; The private key for the client certificate. |
| 47 |
;verify_server_cert = no ; Verify that the server certificate is valid. |
| 48 |
; Default: yes |
| 49 |
;verify_server_hostname = no ; Verify that the hostname in the server's certificate |
| 50 |
; matches the hostname in the URI configured above. |
| 51 |
; Default: yes |