DB Lookup based on ANI

Unanswered Question
Mar 10th, 2010

I have been asked to write a script for a customer and they want to take the incoming caller ID and based on the area code of the phone number do a database lookup and route it to an agent based on the area code.  My concern is that we are taking 10 digits from the caller ID we are only sending 3 digit to the database to do a match on.  Can anyone suggest a good way to do this?


I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Edward Umansky Wed, 03/10/2010 - 16:30

You can retrieve just the first three characters of your ANI with the following Java method:



This Discussion