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 [2020/03/06 17:50] miconda |
cookbooks:devel:transformations [2020/08/28 20:58] miconda [{uri.tosocket}] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Kamailio SIP Server v5.4.x (devel): Transformations ====== | + | ====== |
+ | |||
+ | Version: | ||
< | < | ||
Line 377: | Line 379: | ||
</ | </ | ||
+ | |||
+ | ==== {s.urlencode.param} ==== | ||
+ | |||
+ | Encode the value for URL param format. | ||
+ | |||
+ | ==== {s.urldecode.param} ==== | ||
+ | |||
+ | Decode the value from URL param format. | ||
===== URI Transformations ===== | ===== URI Transformations ===== | ||
Line 454: | Line 464: | ||
< | < | ||
" | " | ||
+ | </ | ||
+ | |||
+ | ==== {uri.suri} ==== | ||
+ | |||
+ | Return the simple URI for routing, keeping only schema, user, host, port and transport parameter. If user, port and transport are not in the original value, they are also not in the returned value. | ||
+ | |||
+ | Example: | ||
+ | |||
+ | <code c> | ||
+ | $var(ouri) = " | ||
+ | $var(suri) = $(var(ouri){uri.suri}); | ||
</ | </ | ||
===== Parameters List Transformations ===== | ===== Parameters List Transformations ===== |