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
cookbooks:devel:transformations [2020/08/29 21:21]
miconda [{uri.suri}]
cookbooks:devel:transformations [2020/08/31 12:17] (current)
miconda [{uri.suri}]
Line 475: Line 475:
 $var(ouri) = "sip:alice@server.com:5060;nat=yes;transport=tcp;line=xyz"; $var(ouri) = "sip:alice@server.com:5060;nat=yes;transport=tcp;line=xyz";
 $var(duri) = $(var(ouri){uri.duri}); # => "sip:server.com:5060;transport=tcp" $var(duri) = $(var(ouri){uri.duri}); # => "sip:server.com:5060;transport=tcp"
 +</code>
 +
 +==== {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) = "sip:alice@server.com:5060;nat=yes;transport=tcp;line=xyz";
 +$var(suri) = $(var(ouri){uri.saor}); # => "sip:alice@server.com"
 </code> </code>
  
cookbooks/devel/transformations.txt ยท Last modified: 2020/08/31 12:17 by miconda