|
@@ -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":"[email protected]",
|
|
|
"rb":""
|
|
|
+ ...
|
|
|
}
|
|
|
...
|
|
|
# the sip message sent to Kamailio:
|