Expression - Internal Extension

Answered Question

Hi !!


I want to identify if a caller is calling to IPCC from an internal extension.. (4 digits 4000-4999 or 8000-8999)


Im trying to use the IF STEP, but im not sure how to write this expression:


{

if ( varNumberInt >= 4000 | varNumberInt <=4999)

varExtension == 1;

else

if ( varNumberInt >= 8000 | varNumberInt <=8999)

varExtension == 1;

}


ps. all variables are Integer

Thanks !

[email protected]

Andrei.

Correct Answer by lpezj about 9 years 11 months ago

Andrei,


You can use this expresion in the IF node:


(varNumberInt >= 4000 && varNumberInt <=4999) || ( varNumberInt >= 8000 && varNumberInt <=8999)


If this expresion is true you must add to the IF true branch a SET statment that gives to varEstension the value of 1.


The ANI value is a string variable that you must convert to integer.


Hope this helps,


Juan Luis

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
lpezj Thu, 07/05/2007 - 04:31
User Badges:
  • Gold, 750 points or more

Andrei,


You can use this expresion in the IF node:


(varNumberInt >= 4000 && varNumberInt <=4999) || ( varNumberInt >= 8000 && varNumberInt <=8999)


If this expresion is true you must add to the IF true branch a SET statment that gives to varEstension the value of 1.


The ANI value is a string variable that you must convert to integer.


Hope this helps,


Juan Luis

Actions

This Discussion