Module: kamailio
Branch: master
Commit: 0fcac52fc9e6445f986c9a5a9ee1b5230030035b
URL:
https://github.com/kamailio/kamailio/commit/0fcac52fc9e6445f986c9a5a9ee1b52…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-03-24T04:21:12+01:00
jsonrpcs: example accessing the jsonrpc response for jsonrpc_exec()
---
Modified: src/modules/jsonrpcs/doc/jsonrpcs_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/0fcac52fc9e6445f986c9a5a9ee1b52…
Patch:
https://github.com/kamailio/kamailio/commit/0fcac52fc9e6445f986c9a5a9ee1b52…
---
diff --git a/src/modules/jsonrpcs/doc/jsonrpcs_admin.xml
b/src/modules/jsonrpcs/doc/jsonrpcs_admin.xml
index fa51c62f54..4b64db557e 100644
--- a/src/modules/jsonrpcs/doc/jsonrpcs_admin.xml
+++ b/src/modules/jsonrpcs/doc/jsonrpcs_admin.xml
@@ -459,6 +459,7 @@ event_route[xhttp:request] {
<programlisting format="linespecific">
...
jsonrpc_exec('{"jsonrpc": "2.0", "method":
"dispatcher.reload", "id": 1}');
+xlog("jsonrpc response code: $jsonrpl(code) - the body is: $jsonrpl(body)\n");
...
</programlisting>
</example>