Brekeke SIP Server Wiki

$math.range

Check whether the number is in the range

 

Syntax:
$math.range( num1, num2, numcheck )
Parameters:

num1 –  the beginning of the number range.
num2 –  the ending of the number range.
numcheck –  the number which should be checked

 

Returns:

true – if the numcheck is in the range
false – otherwise

 

Version Since:

3.3

 

Where the function can be used:
  • Preliminary rules
  • Regular rules
Example:
$math.range( "1111", "5555", $getSIPuser(To) )

Check whether the dialed number is in the range from 1111 to 5555

Yes No
Suggest Edit