$ifAddr
Get the interface IP address for the specified IP address.
If no parameter is specified, it uses the source IP address of the SIP packet.
Syntax:
$ifAddr $ifAddr( target )
Parameters:
target – remote IP address or FQDN
Returns:
An interface IP address of the SIP server.
Version Since:
2.4
Where the function can be used:
- Preliminary rules
- Regular rules
Example:
$ifAddr = (.+)
Get the interface IP address for the sender of the SIP packet.
$ifAddr(“192.168.1.10”) = (.+)
Get the interface IP address for 192.168.1.10