$transport
Get the name of transport protocol which the incoming SIP packet uses.
Syntax:
$transport
Returns:
the transport name (UDP, TCP, TLS, WS or WSS).
Note: the returning value is in upper case.
Version Since:
2.0
Where the function can be used:
- Preliminary rules
- Regular rules
Example:
$transport= ^UDP$
If the transport type is UDP.
$transport= ^TCP$
If the transport type is TCP.
$transport= ^WS$
If the transport type is WS (WebSocket).