Hi
I am currently working on a java application to map the E.164 Telephone Number to DNS name to get a IP address.I dont know how to do this.If any body knows it please help me.
Hi
I am currently working on a java application to map the E.164 Telephone Number to DNS name to get a IP address.I dont know how to do this.If any body knows it please help me.
Shouldn't be too complicated. Here's an extract from the corresponding wikipedia entry:
The ITU ENUM allocates a specific zone, namely "e164.arpa" for use with ENUM E.164 numbers on the IP side of the network. RFC 3761 define how any ENUM number, such as +1 555 42 42 can be transformed into a URI, by reversing the numbers, separating them with dots and adding the e164.arpa suffix thus: 2.4.2.4.5.5.5.1.e164.arpa
Edit
Just in detail:
that's all - you don't need special API, it's just a sort of String transformation
The mapping part is really simple,
public String getEnum(String number) {
String data = number.replaceAll("[^0-9]","");
StringBuffer sb = new StringBuffer();
for (int i = data.length()-1; i >= 0; i--)
{
sb.append(data.charAt(i)).append('.');
}
sb.append("e164.arpa.");
return sb.toString();
}