User Tools

Site Tools


cookbooks:3.2.x:transformations

Differences

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

Link to this comparison view

Next revision Both sides next revision
cookbooks:3.2.x:transformations [2011/10/18 18:50]
miconda created
cookbooks:3.2.x:transformations [2011/10/18 18:52]
miconda [Kamailio SIP Server v3.2.x: Transformations]
Line 6: Line 6:
 </code> </code>
  
-[b]Transformation[/b] is basically a function that is applied to a pseudo-variable (PV) to get a special value from it. The value of PV is not altered.+**Transformation** is basically a function that is applied to a pseudo-variable (PV) to get a special value from it. The value of PV is not altered.
  
 Transformations are implemented by various modules, most of them being in **pv** module. Transformations are implemented by various modules, most of them being in **pv** module.
Line 12: Line 12:
 The transformations are intended to facilitate access to different attributes of PV (like strlen of value, parts of value, substrings) or complete different value of PV (encoded in hexa, md5 value, escape/unescape PV value for DB operations...). The transformations are intended to facilitate access to different attributes of PV (like strlen of value, parts of value, substrings) or complete different value of PV (encoded in hexa, md5 value, escape/unescape PV value for DB operations...).
  
-A transformation is represented in between [b]'{'[/b] and [b]'}'[/b] and follows the name of a PV. When using transformations, the PV name and transformations [b]must[/b] be enclosed in between [b]'('[/b] and [b]')'[/b].+A transformation is represented in between **'{'** and **'}'** and follows the name of a PV. When using transformations, the PV name and transformations **must** be enclosed in between **'('** and **')'**, following the **$** sign.
  
 <code> <code>
cookbooks/3.2.x/transformations.txt ยท Last modified: 2018/07/12 08:31 by gaaf