Completed

PHP Script for HLR lookup

The mobile phone prefix of a phone number in our country does not always indicate the mobile phone provider; as customers can move numbers between providers (portability).

This project takes an input csv file, and looks up mobile numbers in that CSV against an API that looks up the mobile provider that a particular customer uses. It then presents an analysis of the mobile numbers in that CSV, and an analysis of the mobile provider.

--

API example

1. 1st call send phone number (mdisdn). It returns an id.

# curl -X POST [login to view URL] -H 'Authorization: AccessKey SSdwna1fPL5pCT0J2ecMoobS6A' -d "msisdn=353872227869" -d "reference=YourReference"

{"id":"71e3f581793e4d64a7ea1ad5a2043977","href":"[login to view URL]","msisdn":353872227869,"network":null,"details":null,"reference":"YourReference","status":"sent","createdDatetime":"2018-10-30T10:53:21+00:00","statusDatetime":"2018-10-30T10:53:21+00:00"}

2. 2nd call send phone number (mdisdn). It returns an a details array containing locations_msc, and ported (the fields we will use).

# curl -X GET [login to view URL] -H 'Authorization: AccessKey SSdwna1fPL5pCT0J2ecMoobS6A'

{"id":"71e3f581793e4d64a7ea1ad5a2043977","href":"[login to view URL]","msisdn":353872227869,"network":27205,"details":{"status_desc":null,"imsi":"272057035605903","country_iso":"IRL","country_name":"Ireland","location_msc":"35383","location_iso":"ie","ported":1,"roaming":0},"reference":"YourReference","status":"active","createdDatetime":"2018-10-30T10:53:22+00:00","statusDatetime":"2018-10-30T10:53:24+00:00"}

--

Static data.

The below is used:

- to allow a CSV line to be processed. If the number is not one of these patterns then it is skipped.

- to allow for analysis of the HLR lookup details that are returned from the API call.

$provider ['083-three ']='(35383|083)\\d{7}';

$provider ['085-eir ']='(35385|085)\\d{7}';

$provider ['086-o2 ']='(35386|086)\\d{7}';

$provider ['087-vodafone']='(35387|087)\\d{7}';

$provider ['089-tesco ']='(35389|089)\\d{7}';

-- Parameters to script:

csv - name of input csv file

field - number of field containing phone number to be analyised. 1st is 1.

number - only perform the lookup on a max of this number. The max is the number of successful HLR lookups to perform.

-- Sample Output:

php ./[login to view URL] --csv [login to view URL] --field 4 --number 5

Numbers read: 7

Numbers matching pattern: 6

Numbers whose HLR we could lookup: 5

Numbers which appear as ported: 2

Finished - Analyst of HLRs:

MSISDN

083-three: 20.0%,2

086-o2: 10.0%,10

089-tesco: 70.0%,7

---------------------

100.0%,19

Location Msc5

083-threee: 20.0%,2

086-o2: 20.0%,2

089-tesco: 60.1%,6

---------------------

100.0%,19

Log file of all API calls and responses saved to "HLR-08:55:30-30:10:[login to view URL]".

--

Note that lookups cost e0.015 each so testing should use small numbers (not 100's).

Skills: PHP, RESTful, Software Architecture

See more: php script txt lookup, php mysql email lookup, network query tool hlr lookup, php dinamic content based url parameters, php stock symbol lookup, access script file lookup, hlr lookup software, hlr lookup free, free flash script domain lookup, hlr lookup download, hlr lookup legality, linux script ip lookup, php domain availability lookup, script hlr lookup search, hlr lookup php mysql, html script dns lookup, php phone carrier lookup

About the Employer:
( 20 reviews ) Sandyford, Ireland

Project ID: #18060160

Awarded to:

meigire

Hello. My name is Meigire. I've read your project requirements and I have a few questions: 1. what is location Msc5 analysis. can you explain more. 2. I don't understand the format of the log file naming 3. how More

€111 EUR in 10 days
(17 Reviews)
4.9

8 freelancers are bidding on average €174 for this job

junkyfunky

Hello, I've read your project description and I want to tell you that I can create a PHP Script for HLR lookup for you as per your requirements. Lets have a quick chat to discuss this project. We have extensive More

€120 EUR in 4 days
(132 Reviews)
6.9
bengalTIGER1106

Dear client I m top expert in russia I have good skills about api I m flexible in any api I m using curl,ajax,xhttp,file_get_contents for api I m ready on your job for more detail,please contact with me More

€150 EUR in 1 day
(60 Reviews)
6.2
schoudhary1553

Hello, Hope you are doing well. I can help with you in your project PHP Script for HLR lookup. I can assure you the quality job. I have good experience in PHP, RESTful, Software Architecture. We have worked on More

€250 EUR in 3 days
(46 Reviews)
6.0
adicoman

Hi, I am very interested to work on your project. I have 15+ years experience in Web Development using a large variety of programming languages, frameworks, database architecture, APIs, CRMs, ERPs, mobile develo More

€248 EUR in 13 days
(55 Reviews)
5.8
€188 EUR in 10 days
(46 Reviews)
5.5
camper2020

Hi there, thanks for detailed project description. I believe I can help with processing the CSV. I have a lot of experience working with CSV files & API connections. I also understand command line PHP Relevant Skills More

€166 EUR in 3 days
(14 Reviews)
5.0
nitendratiwari2k

Hi, Thanks for reviewing my project proposal on your job application. I have gone through the job description and perceived that you are seeking for highly experienced mobile app developer in order to design and devel More

€155 EUR in 3 days
(4 Reviews)
3.3