浏览代码

modules: readme files regenerated - sipjson ... [skip ci]

Kamailio Dev 7 年之前
父节点
当前提交
aede7c4835
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/modules/sipjson/README

+ 8 - 0
src/modules/sipjson/README

@@ -93,6 +93,8 @@ Chapter 1. Admin Guide
             'opt' parameter cannot be empty, '0' can be given when only
             'opt' parameter cannot be empty, '0' can be given when only
             default attributes are wanted.
             default attributes are wanted.
           + B - (uppercase B) SIP message body
           + B - (uppercase B) SIP message body
+          + c - (lowercase c) CSeq attributes
+          + t - (lowercase t) To header attributes
      * ovar - name of the output pseduo-variable
      * ovar - name of the output pseduo-variable
 
 
    This function can be used from ANY_ROUTE.
    This function can be used from ANY_ROUTE.
@@ -105,6 +107,11 @@ sj_serialize("0B", "$var(json)");
 4. Output Samples
 4. Output Samples
 
 
    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.
 
 
    Example 1.2. sj_serialize output
    Example 1.2. sj_serialize output
 ...
 ...
@@ -129,6 +136,7 @@ ing
   "ua":"sipsak 0.9.7pre",
   "ua":"sipsak 0.9.7pre",
   "ci":"[email protected]",
   "ci":"[email protected]",
   "rb":""
   "rb":""
+  ...
 }
 }
 ...
 ...
 # the sip message sent to Kamailio:
 # the sip message sent to Kamailio: