Module: kamailio
Branch: master
Commit: a23476600666d0cf0604a6a7e3212fa5b1223af8
URL:
https://github.com/kamailio/kamailio/commit/a23476600666d0cf0604a6a7e3212fa…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-02-26T10:38:23+01:00
rtjson: fixed the updated example
- included invalid characters for xml text, rendering empty readme
---
Modified: src/modules/rtjson/doc/rtjson_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/a23476600666d0cf0604a6a7e3212fa…
Patch:
https://github.com/kamailio/kamailio/commit/a23476600666d0cf0604a6a7e3212fa…
---
diff --git a/src/modules/rtjson/doc/rtjson_admin.xml
b/src/modules/rtjson/doc/rtjson_admin.xml
index 1492e82d5a..835b520ca4 100644
--- a/src/modules/rtjson/doc/rtjson_admin.xml
+++ b/src/modules/rtjson/doc/rtjson_admin.xml
@@ -278,54 +278,56 @@ branch_route[OUTGOING] {
<example>
<title>JSON Routing Structure</title>
<programlisting format="linespecific">
+<![CDATA[
...
{
- "version": "1.0",
- "routing": "serial",
- "routes": [
- {
- "uri": "sip:bob@b.example.org:5060",
- "dst_uri": "sip:192.0.2.1:5060",
- "path": "<sip:192.0.2.2:5084>,
<sip:192.0.2.2:5086>",
- "socket": "udp:192.0.2.20:5060",
- "headers": {
- "from": {
- "display": "Alice",
- "uri":
"sip:alice@a.example.org"
- },
- "to": {
- "display": "Bob",
- "uri":
"sip:bob@b.example.org"
- },
- "extra": "X-Hdr-A: abc\r\nX-Hdr-B:
bcd\r\n"
- },
- "branch_flags": 8,
- "fr_timer": 5000,
- "fr_inv_timer": 30000
+ "version": "1.0",
+ "routing": "serial",
+ "routes": [
+ {
+ "uri": "sip:bob@b.example.org:5060",
+ "dst_uri": "sip:192.0.2.1:5060",
+ "path": "<sip:192.0.2.2:5084>,
<sip:192.0.2.2:5086>",
+ "socket": "udp:192.0.2.20:5060",
+ "headers": {
+ "from": {
+ "display": "Alice",
+ "uri": "sip:alice@a.example.org"
},
- {
- "uri": "sip:bob@b.example.org:5060",
- "dst_uri": "sip:192.0.2.10:5060",
- "path": "<sip:192.0.2.2:5084>,
<sip:192.0.2.2:5086>",
- "socket": "udp:192.0.2.20:5060",
- "headers": {
- "from": {
- "display": "Alice",
- "uri":
"sip:alice@a.example.org"
- },
- "to": {
- "display": "Bob",
- "uri":
"sip:bob@b.example.org"
- },
- "extra": "P-Asserted-Identity:
\u003csip:alice@a.example.org\u003e\r\n"
- },
- "branch_flags": 8,
- "fr_timer": 5000,
- "fr_inv_timer": 30000
+ "to": {
+ "display": "Bob",
+ "uri": "sip:bob@b.example.org"
},
- ]
+ "extra": "X-Hdr-A: abc\r\nX-Hdr-B: bcd\r\n"
+ },
+ "branch_flags": 8,
+ "fr_timer": 5000,
+ "fr_inv_timer": 30000
+ },
+ {
+ "uri": "sip:bob@b.example.org:5060",
+ "dst_uri": "sip:192.0.2.10:5060",
+ "path": "<sip:192.0.2.2:5084>,
<sip:192.0.2.2:5086>",
+ "socket": "udp:192.0.2.20:5060",
+ "headers": {
+ "from": {
+ "display": "Alice",
+ "uri": "sip:alice@a.example.org"
+ },
+ "to": {
+ "display": "Bob",
+ "uri": "sip:bob@b.example.org"
+ },
+ "extra": "P-Asserted-Identity:
<sip:alice@a.example.org>\r\n"
+ },
+ "branch_flags": 8,
+ "fr_timer": 5000,
+ "fr_inv_timer": 30000
+ },
+ ]
}
...
+]]>
</programlisting>
</example>