cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
494
Views
0
Helpful
2
Replies

Expression - Internal Extension

datacenter
Level 1
Level 1

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 !

andreig@weg.net

Andrei.

1 Accepted Solution

Accepted Solutions

lpezj
Level 7
Level 7

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

View solution in original post

2 Replies 2

lpezj
Level 7
Level 7

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

YEAH !!!! It works !!!!

:)

Thanks a lot !

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: