From: George Joseph Date: Thu, 5 Jun 2025 14:06:47 +0000 (-0600) Subject: res_websocket_client: Add more info to the XML documentation. X-Git-Tag: 21.10.0-rc1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91203a8612ed0fe21d01d2491f4446289fdf8052;p=thirdparty%2Fasterisk.git 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 a743003e1ef9e686cb758db62b4cb0e05bb33b22) --- 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