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

Need simple True/ False Lookup

I'm over my head in trying to figure out how to collect the ANI from a call, strip down to the area code only, compare this to an xml document and return a true or false.

I know some of you pro's can do this one in your sleep?

Thanks

1 REPLY
Community Member

Re: Need simple True/ False Lookup

To strip items off of the number you will need to use a Java step.

Take the number and put it into a variable, then pull across the Execute Java Method and since the number is down in a string variable you will have that as a variable type here. When you go to the second tab "Explore Class information" Pick the following method "public String substring(int,int)"

This will give you 2 arguments, the first should be 0 the second will be 3. This will give you the first 3 numbers wich are the area code.

Regards,

Javier

207
Views
0
Helpful
1
Replies
CreatePlease to create content