[sr-dev] git:master:abecca7f: update example using IP address reserved for documentation

Henning Westerholt hw at skalatan.de
Tue Feb 25 20:38:06 CET 2020


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

Author: Mathias WOLFF <mathias at celea.org>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2020-02-25T20:37:57+01:00

update example using IP address reserved for documentation

---

Modified: src/modules/rtjson/doc/rtjson_admin.xml

---

Diff:  https://github.com/kamailio/kamailio/commit/abecca7f6515a454b3394ec0df7f535a6a52e1e9.diff
Patch: https://github.com/kamailio/kamailio/commit/abecca7f6515a454b3394ec0df7f535a6a52e1e9.patch

---

diff --git a/src/modules/rtjson/doc/rtjson_admin.xml b/src/modules/rtjson/doc/rtjson_admin.xml
index e2240f03f3..1492e82d5a 100644
--- a/src/modules/rtjson/doc/rtjson_admin.xml
+++ b/src/modules/rtjson/doc/rtjson_admin.xml
@@ -280,50 +280,50 @@ branch_route[OUTGOING] {
 		<programlisting format="linespecific">
 ...
 {
-	"version": "1.0",
-	"routing": "serial",
-	"routes": [
-		{
-			"uri": "sip:127.0.0.1:5080",
-			"dst_uri": "sip:127.0.0.1:5082",
-			"path": "<sip:127.0.0.1:5084>, <sip:127.0.0.1:5086>",
-			"socket": "udp:127.0.0.1:5060",
-			"headers": {
-				"from": {
-					"display": "Alice",
-					"uri": "sip:alice at 127.0.0.1"
-				},
-				"to": {
-					"display": "Alice",
-					"uri": "sip:alice at 127.0.0.1"
-				},
-				"extra": "X-Hdr-A: abc\r\nX-Hdr-B: bcd\r\n"
-			},
-			"branch_flags": 8,
-			"fr_timer": 5000,
-			"fr_inv_timer": 30000
-		},
-		{
-			"uri": "sip:127.0.0.1:5080",
-			"dst_uri": "sip:127.0.0.1:5082",
-			"path": "<sip:127.0.0.1:5084>, <sip:127.0.0.1:5086>",
-			"socket": "udp:127.0.0.1:5060",
-			"headers": {
-				"from": {
-					"display": "Alice",
-					"uri": "sip:alice at 127.0.0.1"
-				},
-				"to": {
-					"display": "Alice",
-					"uri": "sip:alice at 127.0.0.1"
-				},
-				"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"
+                                },
+                                "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: \u003csip:alice at a.example.org\u003e\r\n"
+                        },
+                        "branch_flags": 8,
+                        "fr_timer": 5000,
+                        "fr_inv_timer": 30000
+                },
+        ]
 }
 ...
 </programlisting>




More information about the sr-dev mailing list