Brekeke SIP Server Wiki


Check whether the address matches the prefix (IPv4 Only)


$addrPrefix( Prefix )
$addrPrefix( Prefix, IPcheck  )



Prefix – the network prefix (e.g: )
IPcheck – the IP address which should be checked. If the IPcheck is omitted, the source IP address of SIP packet is used.



true – if the address IPcheck is in the range
false – otherwise


Version Since:


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


$addrPrefix("") = true

Check if the SIP packet’s sender IP address is in the prefix

It is same as the following definition.

$addrPrefix("",$addr) = true


See Also:


Yes No
Suggest Edit