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/09/04 20:56]
henningw [{s.unbracket}]
cookbooks:devel:transformations [2020/01/28 10:54]
miconda [{s.rm,match}]
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 308: Line 314:
 </code> </code>
  
 +==== {s.rmws} ====
 +
 +Remove occurrences of whitespace characters (' ', '\t, '\r', '\n').
 +
 +<code c>
 +$(var(x){s.rmws})
 +</code>
 ==== {s.corehash,n} ==== ==== {s.corehash,n} ====
  
Line 429: Line 442:
 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 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.+**Important Note:** the delimiter cannot be comma (,), because this transformation 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