|
@@ -67,8 +67,9 @@ Chapter 1. Admin Guide
|
|
|
|
|
|
1.1. Limitations
|
|
1.1. Limitations
|
|
|
|
|
|
- This module provides JSONRPC server over HTTP implementation, tailored
|
|
|
|
- for the needs of Kamailio.
|
|
|
|
|
|
+ This module provides a JSON-RPC server over HTTP implementation,
|
|
|
|
+ tailored for the needs of Kamailio. It implements the Kamailio RPC
|
|
|
|
+ interface over JSON-RPC.
|
|
|
|
|
|
The JSONRPC-S module uses the xHTTP module to handle HTTP requests.
|
|
The JSONRPC-S module uses the xHTTP module to handle HTTP requests.
|
|
Read the documentation of the xHTTP module for more details.
|
|
Read the documentation of the xHTTP module for more details.
|
|
@@ -77,10 +78,10 @@ Chapter 1. Admin Guide
|
|
|
|
|
|
* This module does not implement asynchronous RPC commands. It is
|
|
* This module does not implement asynchronous RPC commands. It is
|
|
unlikely that asynchronous RPC commands will be executed from an
|
|
unlikely that asynchronous RPC commands will be executed from an
|
|
- JSONRPC over HTTP client.
|
|
|
|
|
|
+ JSON-RPC over HTTP client.
|
|
* This module does not accept parameters embedded in a structure (see
|
|
* This module does not accept parameters embedded in a structure (see
|
|
- RPC documentation for more info about how parameters can be passed
|
|
|
|
- to RPC).
|
|
|
|
|
|
+ the RPC documentation for more info about how parameters can be
|
|
|
|
+ passed to RPC).
|
|
|
|
|
|
2. Dependencies
|
|
2. Dependencies
|
|
|
|
|
|
@@ -104,7 +105,7 @@ Chapter 1. Admin Guide
|
|
|
|
|
|
3.1. pretty_format (int)
|
|
3.1. pretty_format (int)
|
|
|
|
|
|
- Pretty format for JSONRPC response document.
|
|
|
|
|
|
+ Pretty format for JSON-RPC response document.
|
|
|
|
|
|
Default value is '0'.
|
|
Default value is '0'.
|
|
|
|
|
|
@@ -167,11 +168,11 @@ event_route[xhttp:request] {
|
|
|
|
|
|
4.2. jsonrpc_exec(cmd)
|
|
4.2. jsonrpc_exec(cmd)
|
|
|
|
|
|
- Execute JSONRPC command given as parameter.
|
|
|
|
|
|
+ Execute a JSON-RPC command given as a parameter.
|
|
|
|
|
|
- The parameter has to be a full valid JSONRPC document. It can be a
|
|
|
|
|
|
+ The parameter has to be a valid full JSON-RPC document. It can be a
|
|
dynamic string with variables. The result of the command can be
|
|
dynamic string with variables. The result of the command can be
|
|
- accessed via $jsonrpl(key) variables.
|
|
|
|
|
|
+ accessed via $jsonrpl(key) pseudo variables.
|
|
|
|
|
|
Example 1.3. jsonrpc_exec usage
|
|
Example 1.3. jsonrpc_exec usage
|
|
...
|
|
...
|