Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Expression - Internal Extension

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
Gold

Re: Expression - Internal Extension

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

2 REPLIES
Gold

Re: Expression - Internal Extension

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

New Member

Re: Expression - Internal Extension

YEAH !!!! It works !!!!

:)

Thanks a lot !

221
Views
0
Helpful
2
Replies
CreatePlease login to create content