This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cookbooks:devel:transformations [2018/07/12 08:32] gaaf [{re.subst,expression}] |
cookbooks:devel:transformations [2018/11/23 11:54] miconda |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Kamailio SIP Server v5.2.x (devel): Transformations ====== | + | ====== Kamailio SIP Server v5.3.x (devel): Transformations ====== |
< | < | ||
Line 316: | Line 316: | ||
<code c> | <code c> | ||
$(var(x){s.corehash}) | $(var(x){s.corehash}) | ||
+ | </ | ||
+ | |||
+ | ==== {s.unquote} ==== | ||
+ | |||
+ | Return the value without surrounding single (') or double quotes ("). | ||
+ | |||
+ | <code c> | ||
+ | $var(x) = " | ||
+ | $var(alice) = $(var(x){s.unquote}); | ||
+ | </ | ||
+ | |||
+ | ==== {s.unbracket} ==== | ||
+ | |||
+ | Return the value without surrounding (), [], {} or <>. | ||
+ | |||
+ | <code c> | ||
+ | $var(x) = "< | ||
+ | $var(uri) = $(var(x){s.unbracket}); | ||
</ | </ | ||
===== URI Transformations ===== | ===== URI Transformations ===== |