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

Need simple True/ False Lookup

bolic001
Level 1
Level 1

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 1

JavierFT1
Level 1
Level 1

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