$regAddr
Get the contact IP address and port number of the registered user.
If no argument is specified, use the Request URI as the argument.
Syntax:
$regAddr $regAddr( SIP-URI ) $regAddr( username )
Returns:
The contact IP address and port number of the registered user.
If a corresponding registration record isn’t found, null will be returned.
Version Since:
1.0
Where the function can be used:
- Preliminary rules
- Regular rules
Example:
$regAddr = ^192\.168\.0\.10:5060$
If the contact IP address of the registration record which the request URI indicates is 192.168.0.10:5060.
$regAddr(From) = (.+)
Get the From URI’s registered IP address.