Skip to content

Commit

Permalink
rtjson: fixed the updated example
Browse files Browse the repository at this point in the history
- included invalid characters for xml text, rendering empty readme

(cherry picked from commit a234766)
  • Loading branch information
miconda authored and henningw committed May 13, 2020
1 parent d6e84f7 commit 3218f62
Showing 1 changed file with 44 additions and 42 deletions.
86 changes: 44 additions & 42 deletions src/modules/rtjson/doc/rtjson_admin.xml
Expand Up @@ -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>

Expand Down

0 comments on commit 3218f62

Please sign in to comment.