Module: kamailio Branch: master Commit: 6c5fc21329bac531b64c1350c10e3d0490aefef6 URL: https://github.com/kamailio/kamailio/commit/6c5fc21329bac531b64c1350c10e3d04...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2018-08-31T11:20:08+02:00
sipjson: docs - updates to serialize options and sample json section
---
Modified: src/modules/sipjson/doc/sipjson_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/6c5fc21329bac531b64c1350c10e3d04... Patch: https://github.com/kamailio/kamailio/commit/6c5fc21329bac531b64c1350c10e3d04...
---
diff --git a/src/modules/sipjson/doc/sipjson_admin.xml b/src/modules/sipjson/doc/sipjson_admin.xml index ccfa868073..f357367086 100644 --- a/src/modules/sipjson/doc/sipjson_admin.xml +++ b/src/modules/sipjson/doc/sipjson_admin.xml @@ -93,6 +93,16 @@ B - (uppercase B) SIP message body </para> </listitem> + <listitem> + <para> + c - (lowercase c) CSeq attributes + </para> + </listitem> + <listitem> + <para> + t - (lowercase t) To header attributes + </para> + </listitem> </itemizedlist> </listitem> <listitem> @@ -120,7 +130,12 @@ sj_serialize("0B", "$var(json)"); <section> <title>Output Samples</title> <para> - The content of the output variable is a JSON. Next are some 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. </para> <example> <title><function>sj_serialize</function> output</title> @@ -146,6 +161,7 @@ sj_serialize("0B", "$var(json)"); "ua":"sipsak 0.9.7pre", "ci":"482215126@172.17.0.2", "rb":"" + ... } ... # the sip message sent to &kamailio;: