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

ICM script

I am using IPCCE with CVP 3.1 and I want to add this condition to IF node

if the call line ID start with xxxx then ....

I mean I want the function for (start with) it is not with the built in functions in the ICM script editor?

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Silver

Re: ICM script

The do the following:

1. In CLID step and use multiple prefixes for the same instance

2. Use If statment with OR (||) clause as following:

IF (left(Call.CallingLineID,3)=="123" || left(Call.CallingLineID,3)=="345")

3. Another option is uing Region node

HTH, Please rate all useful posts!

Chris

6 REPLIES
Gold

Re: ICM script

Hi,

I think that you have available functions similar to left, right or mid, in the same way as in a conventional programming language.

Take a look to it.

Hope this helps,

Juan Luis

Hall of Fame Super Silver

Re: ICM script

I am assuming you are doing this logic in ICM script and not CVP Studio.

You have couple of solutions:

1. use the CLID step and use Prefix type and enter the CLID prefix

2. Use If statment as following:

left(Call.CallingLineID,3)=="123", where 3 implies you are lookin at 3 left most digits.

HTH,

Chris

New Member

Re: ICM script

many thanks, this is very helpful, but what is the case if I want to user more than one prefix in if statement?

Hall of Fame Super Silver

Re: ICM script

The do the following:

1. In CLID step and use multiple prefixes for the same instance

2. Use If statment with OR (||) clause as following:

IF (left(Call.CallingLineID,3)=="123" || left(Call.CallingLineID,3)=="345")

3. Another option is uing Region node

HTH, Please rate all useful posts!

Chris

New Member

Re: ICM script

many thanks,it works fine but not with CLID I used IF node, with CLID it doesnot work fine.

Re: ICM script

Some calls will show up with no CLID and thus break your logic. Try having some logic which addresses where calling line id = "".

david

155
Views
0
Helpful
6
Replies