From aede7c4835dd516cea75a5191d1ae6af3460c3c8 Mon Sep 17 00:00:00 2001 From: Kamailio Dev Date: Fri, 31 Aug 2018 11:31:46 +0200 Subject: [PATCH] modules: readme files regenerated - sipjson ... [skip ci] --- src/modules/sipjson/README | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/modules/sipjson/README b/src/modules/sipjson/README index add1b53f979..525ae98351b 100644 --- a/src/modules/sipjson/README +++ b/src/modules/sipjson/README @@ -93,6 +93,8 @@ Chapter 1. Admin Guide 'opt' parameter cannot be empty, '0' can be given when only default attributes are wanted. + B - (uppercase B) SIP message body + + c - (lowercase c) CSeq attributes + + t - (lowercase t) To header attributes * ovar - name of the output pseduo-variable This function can be used from ANY_ROUTE. @@ -105,6 +107,11 @@ sj_serialize("0B", "$var(json)"); 4. Output Samples The content of the output variable is a JSON. Next are some samples. + Note that the content might change with future development and this + example become outdated, simply print the document when you start + testing your config and match the name of the attribute with the name + of pseudo-variables to understand what values can be there. Unlike + pseudo-variables, the $null values might converted to empty strings. Example 1.2. sj_serialize output ... @@ -129,6 +136,7 @@ ing "ua":"sipsak 0.9.7pre", "ci":"482215126@172.17.0.2", "rb":"" + ... } ... # the sip message sent to Kamailio: