HLR-lookup (Network Query)
It is possible to run a Network Query on the mobile network. This service is called 'Network Lookup Service' or 'HLR lookup'. With an HLR Lookup we can retrieve operator information of a mobile number. An HLR Lookup could be useful to retrieve which operator serves a ported mobile number. This information can then be used to select the cheapest SMS route.
Post your HLR request
Verstuur de volgende aanvraag:
http://www.mollie.nl/xml/hlr/?username=[username] &password=[password]&recipients=[recipient]&reference=[reference]
Warning! HLR does not accept bulk-requests (numbers seperated by comma).
The reference parameter is the reference to the recipient, which we will return when sending the hlr report. You can setup the HLR-report URL at your settings page.
HLR response
After a few moments you will receive a request at the HLR-return URL with the network information.
HLR example:
http://www.domain.com/sms/hlr.php?reference=123456789 &recipient=31612345678&status=60&network=204160
Possible values of status:
- 60 - request is OK
- 61 - request is OK, MSISDN/recipient missing
- 62 - request is OK, MSISDN/recipient does not exist
- 69 - request failed
The network parameter contains the 'mobile network code' (MNC), you can find a full list of MNC-codes at this Wikipedia page.