[sr-dev] git:master:a2347660: rtjson: fixed the updated example

Daniel-Constantin Mierla miconda at gmail.com
Wed Feb 26 10:39:32 CET 2020


Module: kamailio
Branch: master
Commit: a23476600666d0cf0604a6a7e3212fa5b1223af8
URL: https://github.com/kamailio/kamailio/commit/a23476600666d0cf0604a6a7e3212fa5b1223af8

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/a23476600666d0cf0604a6a7e3212fa5b1223af8.diff
Patch: https://github.com/kamailio/kamailio/commit/a23476600666d0cf0604a6a7e3212fa5b1223af8.patch

---

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 at 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 at a.example.org"
-                                },
-                                "to": {
-                                        "display": "Bob",
-                                        "uri": "sip:bob at 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 at 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 at a.example.org"
                 },
-                {
-                        "uri": "sip:bob at 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 at a.example.org"
-                                },
-                                "to": {
-                                        "display": "Bob",
-                                        "uri": "sip:bob at b.example.org"
-                                },
-                                "extra": "P-Asserted-Identity: \u003csip:alice at a.example.org\u003e\r\n"
-                        },
-                        "branch_flags": 8,
-                        "fr_timer": 5000,
-                        "fr_inv_timer": 30000
+                "to": {
+                    "display": "Bob",
+                    "uri": "sip:bob at 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 at 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 at a.example.org"
+                    },
+                    "to": {
+                        "display": "Bob",
+                        "uri": "sip:bob at b.example.org"
+                    },
+                    "extra": "P-Asserted-Identity: <sip:alice at a.example.org>\r\n"
+            },
+            "branch_flags": 8,
+            "fr_timer": 5000,
+            "fr_inv_timer": 30000
+        },
+    ]
 }
 ...
+]]>
 </programlisting>
 	   </example>
 




More information about the sr-dev mailing list