User Tools

Site Tools


cookbooks:devel:transformations

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cookbooks:devel:transformations [2019/01/09 10:11]
ycaner Json : add json.parse transformation.
cookbooks:devel:transformations [2019/10/10 14:54] (current)
miconda
Line 1: Line 1:
-====== Kamailio SIP Server v5.3.x (devel): Transformations ======+====== Kamailio SIP Server v5.4.x (devel): Transformations ======
  
 <​code>​ <​code>​
Line 335: Line 335:
 $var(uri) = $(var(x){s.unbracket});​ $var(uri) = $(var(x){s.unbracket});​
 </​code>​ </​code>​
 +
 +==== {s.count,c} ====
 +
 +Count how many times c appears in the pv value.
 +
 +<code c>
 +abababa"​{s.count,​a}
 +# will return 4
 +</​code>​
 +
 +
 ===== URI Transformations ===== ===== URI Transformations =====
  
Line 416: Line 427:
 The name of the transformation starts with '​param.'​. The PV value is considered to be a string like name1=value1;​name2=value2;​..."​. The transformations returns the value for a specific parameter, or the name of a parameter at a specific index. The name of the transformation starts with '​param.'​. The PV value is considered to be a string like name1=value1;​name2=value2;​..."​. The transformations returns the value for a specific parameter, or the name of a parameter at a specific index.
  
-Available transformations in this class:+Available transformations in this class are presented in the next sections. 
 + 
 +**Important Note:** the delimiter cannot be comma (,), because this trasformation is using SIP header/URI parameters parser and the comma is a delimiter between serialized SIP header/URI bodies. The workaround is to use the subst transformation to replace the comma with another character that is used then as separator.
  
  
cookbooks/devel/transformations.1547025095.txt.gz · Last modified: 2019/01/09 10:11 by ycaner