libphonenumber into Asterisk
libastphonenumber is a new library that exposes the libphonenumber into Asterisk.
FORMAT_NUM
- Get formatted numbers in specific format based on a country.IS_VALID_NUM
- Check validity of a number.NUM_INFO
- Get information about a number: Country calling code, Country of the phone and Type of phone number. REGION_INFO
- Get information about a country/region.The installation is processed in two parts:
The installation of following programs are required:
To create a Debian version of the library, you can follow these instructions.
Compile the main library libastphonenumber:
mkdir build
cd build
cmake ..
make
make install
Add Asterisk application to the source code:
cp asterisk/app_numformat.c <ASTERISK_SOURCE_CODE_PATH>/apps/
Compile Asterisk source code.