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

Call.CallingLineID in Script Editor

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
Community Member

Re: Call.CallingLineID in Script Editor

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

356
Views
0
Helpful
1
Replies
CreatePlease to create content