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
Next revision Both sides next revision
cookbooks:devel:transformations [2019/08/19 14:30]
miconda [Parameters List Transformations]
cookbooks:devel:transformations [2019/10/10 14:54]
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 418: Line 429:
 Available transformations in this class are presented in the next sections. 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 parameter 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.+**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.txt ยท Last modified: 2022/04/08 18:08 by miconda