Module: kamailio Branch: master Commit: aede7c4835dd516cea75a5191d1ae6af3460c3c8 URL: https://github.com/kamailio/kamailio/commit/aede7c4835dd516cea75a5191d1ae6af3460c3c8
Author: Kamailio Dev <kamailio....@kamailio.org> Committer: Kamailio Dev <kamailio....@kamailio.org> Date: 2018-08-31T11:31:46+02:00 modules: readme files regenerated - sipjson ... [skip ci] --- Modified: src/modules/sipjson/README --- Diff: https://github.com/kamailio/kamailio/commit/aede7c4835dd516cea75a5191d1ae6af3460c3c8.diff Patch: https://github.com/kamailio/kamailio/commit/aede7c4835dd516cea75a5191d1ae6af3460c3c8.patch --- diff --git a/src/modules/sipjson/README b/src/modules/sipjson/README index add1b53f97..525ae98351 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: _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev