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 revisionPrevious revision
Next revisionBoth sides next revision
cookbooks:devel:transformations [2020/07/17 06:13] micondacookbooks:devel:transformations [2020/08/28 18:58] – [{uri.tosocket}] miconda
Line 464: Line 464:
 <code> <code>
 "sip:test@127.0.0.1:5060;transport=udp"{uri.tosocket} => "udp:127.0.0.1:5060" "sip:test@127.0.0.1:5060;transport=udp"{uri.tosocket} => "udp:127.0.0.1:5060"
 +</code>
 +
 +==== {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) = "sip:alice@server.com:5060;nat=yes;transport=tcp;line=xyz";
 +$var(suri) = $(var(ouri){uri.suri}); # => "sip:alice@server.com:5060;transport=tcp"
 </code> </code>
 ===== Parameters List Transformations ===== ===== Parameters List Transformations =====
cookbooks/devel/transformations.txt · Last modified: 2022/04/08 16:08 by miconda

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki