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

Changing Calling Number length

dmenkel
Level 1
Level 1

I am working with IPCC 3.1(2) and have built a script that is using the Get Call Contact Info. The calling number has a corresponding script variable named "CallingNumber". The ANI that is coming in is 10 digits in length. The script is working and receiving the 10 digits, however I want to change this variable so that the output is only the first 6 digits.

So I need to place the contents of the "CallingNumber" variable into a new variable but which contains only the first 6 digits of the ANI.

What mechanism can I use to accomplish this?

Thanks,

1 Reply 1

adignan
Level 8
Level 8

Ok, see the attached .aef file. Basically you take the ANI and then use the "Execute Java Method" to pull out the first 6 digits. So the script looks like this:

-Start

-Accept

-Get Call Contact Info (put Calling Number into strANI variable)

strANI = strANI.substring(0,6)

- Andy - Berbee