https://www.opensips.org/Documentation/Script-Tran-3-2
Table of Content (hide)
1. String Transformations
1.1 {s.len}
1.2 {s.int}
1.3 {s.md5}
1.4 {s.reverse}
1.5 {s.substr,offset,length}
1.6 {s.select,index,separator}
1.7 {s.encode.hexa}
1.8 {s.decode.hexa}
1.9 {s.escape.common}
1.10 {s.unescape.common}
1.11 {s.escape.user}
1.12 {s.unescape.user}
1.13 {s.escape.param}
1.14 {s.unescape.param}
1.15 {s.tolower}
1.16 {s.toupper}
1.17 {s.index}
1.18 {s.rindex}
1.19 {s.fill.left, tok, len}
1.20 {s.fill.right, tok, len}
1.21 {s.width, len}
1.22 {s.trim}
1.23 {s.trimr}
1.24 {s.triml}
1.25 {s.dec2hex}
1.26 {s.hex2dec}
1.27 {s.b64encode}
1.28 {s.b64decode}
1.29 {s.xor,secret}
2. URI Transformations
2.1 {uri.user}
2.2 {uri.host}
2.3 {uri.passwd}
2.4 {uri.port}
2.5 {uri.params}
2.6 {uri.param,name}
2.7 {uri.headers}
2.8 {uri.transport}
2.9 {uri.ttl}
2.10 {uri.uparam}
2.11 {uri.maddr}
2.12 {uri.method}
2.13 {uri.lr}
2.14 {uri.r2}
2.15 {uri.schema}
3. VIA Transformations
3.1 {via.name}
3.2 {via.version}
3.3 {via.transport}
3.4 {via.host}
3.5 {via.port}
3.6 {via.comment}
3.7 {via.params}
3.8 {via.param,name}
3.9 {via.branch}
3.10 {via.received}
3.11 {via.rport}
4. Parameters List Transformations
4.1 {param.value,name}
4.2 {param.exist,name}
4.3 {param.valueat,index}
4.4 {param.name,index}
4.5 {param.count}
5. Name-address Transformations
5.1 {nameaddr.name}
5.2 {nameaddr.uri}
5.3 {nameaddr.len}
5.4 {nameaddr.param,param_name}
5.5 {nameaddr.params}
6. IP Transformations
6.1 {ip.pton}
6.2 {ip.ntop}
6.3 {ip.isip}
6.4 {ip.family}
6.5 {ip.resolve}
6.6 {ip.matches}
7. CSV Transformations
7.1 {csv.count}
7.2 {csv.value}
8. SDP Transformations
8.1 {sdp.line}
8.2 {sdp.stream}
8.3 {sdp.stream-delete}
9. Regular Expression Transformations
9.1 {re.subst,reg_exp}
10. Examples