From b1d764b873e23a7d3950e9aa84a06be2b3139455 Mon Sep 17 00:00:00 2001 From: George Joseph Date: Thu, 5 Jun 2025 08:06:47 -0600 Subject: [PATCH] res_websocket_client: Add more info to the XML documentation. Added "see-also" links to chan_websocket and ARI Outbound WebSocket and added an example configuration for each. (cherry picked from commit 9e446d872eebe83caceaee852b7249e5b89db727) --- res/res_websocket_client.c | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/res/res_websocket_client.c b/res/res_websocket_client.c index 47774593ab..8ee0aecc7d 100644 --- a/res/res_websocket_client.c +++ b/res/res_websocket_client.c @@ -31,6 +31,53 @@ 22.5.0 Websocket Client Configuration + + /Configuration/Channel-Drivers/WebSocket/ + /Configuration/Interfaces/Asterisk-REST-Interface-ARI/ARI-Outbound-Websockets/ + + + + These config objects are currently shared by the following Asterisk capabilities: + + + The WebSocket channel driver. + ARI Outbound WebSockets. + + + They may have more specific information or restrictions on the parameters below. + + +; +; A connection for use by chan_websocket +[media_connection1] +type = websocket_client +uri = ws://localhost:8787 +protocols = media +username = media_username +password = media_password +connection_type = per_call_config +connection_timeout = 500 +reconnect_interval = 500 +reconnect_attempts = 5 +tls_enabled = no +; +; A TLS connection for use by ARI Outbound Websocket +[ari_connection1] +type = websocket_client +uri = wss://localhost:8765 +protocols = ari +username = some_username +password = some_password +connection_type = persistent +connection_timeout = 500 +reconnect_interval = 500 +reconnect_attempts = 5 +tls_enabled = yes +ca_list_file = /etc/pki/tls/cert.pem +verify_server_cert = no +verify_server_hostname = no + + 20.15.0 -- 2.47.2