cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
742
Views
0
Helpful
1
Replies

Call.CallingLineID in Script Editor

p.kalvinek
Level 1
Level 1

How do I in script editor (ICM 4.6.2) do the following:

if the ANI (Call.CallingLineID) is less than 10 digits, then go to one set of logic and if ANI is equal to 10 digits then go to another set of logic. I tried doing an “if” box with “len(Call.CallingLineID)=10” and all calls “pass”. The object Call.CallingLineID is always 10 in length. I want to be able to say that if my ANI is less than 10 digits, don't consider it for a certain set of logic.

1 Reply 1

downeys
Level 1
Level 1

Are you using ANI Masking? If so what charachter are you using? Instead of using len you could use the function right to examine the last charachter to see if it is blank or * for instance. e.g. if right(Call.CallingLineID)=*

Regards

Sam