This is a very simple library to get from IMSI to mobile operator information. The source is generated out of a database of mobile operators and is organized in a digit tree for high speed translation.
There is only one C function get_operator_from_imsi2 doing all the work. (and a older version get_operator_from_imsi)
./configure
make
make install
will build it normally. For codesigning under Mac OS, define APPLICATION_CERT to your Developer ID certificate number
export APPLICATION_CERT={your-codesign-identity}
make
make framework
if you want to modify the database and regenerate it, do the following:
create a mysql database and import the opdb.sql database into it. Copy dp.php-example
to db.php
and edit it accordingly so php has access to that database.
then do
make generate
make
make install
this will regenerate the operatordb.c out of the database and recompile it.