From 97de59d5b8d8d8d8ebd073cd556a566fcbe5ee9d Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Sat, 24 Dec 2016 09:08:37 +0100 Subject: [PATCH] websocket: documentation for rpc commands --- src/modules/websocket/doc/websocket_admin.xml | 70 ++++++++++--------- 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/src/modules/websocket/doc/websocket_admin.xml b/src/modules/websocket/doc/websocket_admin.xml index 2582fe7b19b..d559c313167 100644 --- a/src/modules/websocket/doc/websocket_admin.xml +++ b/src/modules/websocket/doc/websocket_admin.xml @@ -10,9 +10,9 @@ - + &adminguide; - +
Overview This module implements a WebSocket (RFC 6455) server and provides @@ -122,7 +122,7 @@ event_route[xhttp:request] { it may not be possible to guarantee all SIP WebSocket clients will support Outbound and Path. The nathelper module functions - (nat_uac_test(), + (nat_uac_test(), fix_nated_register(), add_contact_alias(), and handle_ruri_alias()) and the Kamailio core @@ -406,7 +406,7 @@ modparam("websocket", "sub_protocols", 2) 0 - Do not add an "Access-Control-Allow-Origin:" header to the response - accepting the WebSocket handshake. + accepting the WebSocket handshake. 1 - Add a @@ -497,8 +497,8 @@ ws_close(4000, "Because I say so");
- MI Commands -
+ RPC Commands +
<function moreinfo="none">ws.dump</function> Provides the details of the first 50 WebSocket connections. @@ -514,15 +514,15 @@ ws_close(4000, "Because I say so"); If no parameter is provided id_hash order is used. - MI FIFO Command Format: + RPC Command Usage: - :ws.dump:fifo_reply - used_asc - _empty_line_ +... +&kamcmd; ws.dump used_asc +...
-
+
<function moreinfo="none">ws.close</function> Starts the close handshake for the specified WebSocket connection. @@ -533,15 +533,15 @@ ws_close(4000, "Because I say so"); id - WebSocket connection ID. - MI FIFO Command Format: + RPC Command Usage: - :ws.close:fifo_reply - 1 - _empty_line_ +... +&kamcmd; ws.close: 1 +...
-
+
<function moreinfo="none">ws.ping</function> Sends a Ping frame on the specified WebSocket connection. @@ -552,15 +552,15 @@ ws_close(4000, "Because I say so"); id - WebSocket connection ID. - MI FIFO Command Format: + RPC Command Usage: - :ws.ping:fifo_reply - 1 - _empty_line_ +... +&kamcmd; ws.ping 1 +...
-
+
<function moreinfo="none">ws.pong</function> Sends a Pong frame on the specified WebSocket connection. @@ -571,38 +571,40 @@ ws_close(4000, "Because I say so"); id - WebSocket connection ID. - MI FIFO Command Format: + RPC Command Usage: - :ws.pong:fifo_reply - 1 - _empty_line_ +... +&kamcmd; ws.pong 1 +...
-
+
<function moreinfo="none">ws.disable</function> Disables WebSockets preventing new connections from being established. Name: ws.disable Parameters: none - MI FIFO Command Format: + RPC Command Usage: - :ws.disable:fifo_reply - _empty_line_ +... +&kamcmd; ws.disable +...
-
+
<function moreinfo="none">ws.enable</function> Enables WebSockets allowing new connections to be established. WebSockets are enabled at start-up. Name: ws.enable Parameters: none - MI FIFO Command Format: + RPC Command Format: - :ws.enable:fifo_reply - _empty_line_ +... +&kamcmd; ws.enable +...
@@ -633,7 +635,7 @@ event_route[websocket:closed] {
- +
Exported Pseudo Variables