VoIP Cookbook: Free Internet Country: Country Code +882
One of the services important to VoIP is ENUM, which carries out mapping from IP address to telephone number using Domain Name System (DNS). The phone number system for telephone we are familiar with, the one with specific country code, is known as E.164 format. The mapping process is usually performed by a DNS machine in the Internet, through NAPTR special entry. There are two (2) main Top Level Domains used as reference in ENUM process: e164.arpa and e164.org. The former is the top level domain normally used by formal telecommunication institution controlled by the International Telecommunication Union. In your country, e164.arpa is possibly under the control of the country's ministry of telecommunication.
The latter, e164.org, is the informal level domain provided by communities, the sort that are concerned with how people can minimize telecommunication cost. This is the domain we will use for our VoIP communication. We can register in http://www.e164.org to get an account that can be used to obtain a phone number and register the number.
For smooth interconnection process between asterisk softswitch and e164.org, we need to configure /etc/asterisk/enum.conf so the Asterisk softswitch will be able to recognize the numbers listed in e164.org domain, by activating the following parameters:
search => enum.voiprakyat.or.id search => e164.org search => e164.arpa
Once these parameters are activated, the softswitch will automatically seek the PSTN numbers available in e164.org and e164.arpa. Since we are using VoIP Rakyat as an example in this book, we will refer you to enum.voiprakyat.or.id, an ENUM developed in Indonesia. You may later change the parameters to any ENUM provider that is suitable to your needs or even develop your own ENUM server, as running one requires only a DNS server.
Entries that needs to be incorporated into /etc/asterisk/enum.conf are:
search => enum.voiprakyat.or.id
Through the registration page of e164.org https://www.e164.org/signup.php, enter the required information in order to obtain a telephone number or register a telephone number. The information you have to enter are username, password, your email address, your time zone and Verifying code. Then click “Add me” to complete the registration. If the registration is successful, you will be able to use your newly-created account to get a telephone number assigned by e164.org or register yours.
To obtain a telephone number or register your number, you need to log on to e164.org. Once you're logged in, there are some options you can choose from.
Access to https://www.e164.org/freenumadd.php will bring you to a default window whereby you can add a virtual phone number to e164.org. You will be assigned an internet telephone number with country code +822 from e164.org.
But if you're interested in adding a real PSTN number, access to https://www.e164.org/pstnadd.php will add PSTN number instead and register the number you use in your country. When registering, you need to have the PSTN number active as e164 will dial the number to authenticate that it is real. Once you received the activation code, go back to e164.org website to activate the number you have just registered.
To register a PSTN number, you need to enter information such as country, area code, telephone number, and SIP account that will be called when someone places a call through VoIP network using the PSTN number. So the VoIP network will not reach your real PSTN number, but your SIP account using this PSTN number. Your SIP phone will ring, but not your PSTN phone.
Once all information are entered correctly, click Add me to register our PSTN number so it can be called through internet telephony network.
The second option is much easier to do: simply request a VoIP number with country code +882 via https://www.e164.org/freenumadd.php. This number cannot be reached by PSTN numbers but will be reached only through VoIP network. To obtain a +822 number, enter your SIP, IAX2 or H.323 number into the blanks. Since the account you created in VoIP Rakyat is of SIP, choose SIP in the drop-down menu. Once all information are entered properly, click Add number in order to obtain the country code +882.
The most interesting part of e164.org is its ability to obtain a block of numbers via https://www.e164.org/hostadd.php with area code +822 99, instead of having these numbers included one by one. To do this, click Server Add. Via add a Server Entry, choose the type of protocol used by the server and enter the name of the server. The server should have a Public IP address, not the one used internally. Once all information are entered properly, click Add Server. This will make your SIP server be recognized by e164.org, with +882 being the country code assigned to the server. This also implies that you will have a bunch of numbers that you can further allocate to the users who are registered with your server.