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 [2020/01/14 09:45]
miconda [{s.decode.base64}]
Line 1: Line 1:
-====== Kamailio SIP Server v5.3.x (devel): Transformations ======+====== Kamailio SIP Server v5.4.x (devel): Transformations ======
  
 <code> <code>
Line 153: Line 153:
 Decode base64 encoded PV and return value Decode base64 encoded PV and return value
  
 +==== {s.encode.base64t} ====
  
 +Return base64 encoding of PV value without trailing padding characters('=').
  
 +
 +==== {s.decode.base64t} ====
 +
 +Decode base64 encoded PV, handling missing trailing padding characters, and return value.
 ==== {s.escape.common} ==== ==== {s.escape.common} ====
  
Line 335: Line 341:
 $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 =====
  
cookbooks/devel/transformations.txt ยท Last modified: 2022/04/08 18:08 by miconda