Brekeke SIP Server Wiki

$globalAddr

Check whether the address is a global address (public IP address).

Syntax:
$globalAddr( ip-address )
$globalAddr( SIP-URI )

 

Returns:

true – if it is a global IP address.
false – otherwise

 

Version Since:

2.0

 

Where the function can be used:
  • Preliminary rules
  • Regular rules

 

Example:
$globalAddr( “192.168.0.200” ) = false

If 192.168.0.200 is not a global IP address.

$globalAddr( Contact ) = true

If the Contact URI indicates a global IP address.

$globalAddr( $regaddr ) = false

If the Request-URI’s registered IP address is not a global IP address.

 

See Also:

$addr 
$localhost 

Yes No
Suggest Edit