$port
Get the source port number of the incoming SIP request packet
Syntax:
$port
Returns:
The source port number of the incoming SIP packet.
Version Since:
1.0
Where the function can be used:
- Preliminary rules
- Regular rules
Examples:
$port = ^5060$
If the source port number of the packet is 5060.