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/08/28 20:58] miconda [{uri.tosocket}] |
cookbooks:devel:transformations [2020/08/31 12:17] miconda [{uri.suri}] |
||
---|---|---|---|
Line 464: | Line 464: | ||
< | < | ||
" | " | ||
+ | </ | ||
+ | |||
+ | ==== {uri.duri} ==== | ||
+ | |||
+ | Return the destination URI for routing, keeping only schema, host, port and transport parameter. If port and transport are not in the original value, they are also not in the returned value. | ||
+ | |||
+ | Example: | ||
+ | |||
+ | <code c> | ||
+ | $var(ouri) = " | ||
+ | $var(duri) = $(var(ouri){uri.duri}); | ||
+ | </ | ||
+ | |||
+ | ==== {uri.saor} ==== | ||
+ | |||
+ | Return the SIP AoR, keeping only schema, user and host. If user is not in the original value, it is also not in the returned value. | ||
+ | |||
+ | Example: | ||
+ | |||
+ | <code c> | ||
+ | $var(ouri) = " | ||
+ | $var(suri) = $(var(ouri){uri.saor}); | ||
</ | </ | ||