Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HLR lookups work both with GET and POST requests.
Request should be sent to:

Code Block
httphttps://hlrlookup.coolsmsclinkmobility.dk/

Parameters

Name

Type

Description

username

Required

The username of the account that performs the lookup

password

Required

password for your account that performs the lookup

number

Required

The number for which to fetch network information about

lang

 

language you want the results to be displayed in. The following valuesare supported:
dk the Danish
en for English
Default dk

Request

Code Block
httphttps://hlrlookup.coolsmsclinkmobility.dk/?username=xxxx&password=xxxx&number=4570261272

...

Code Block
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE hlr SYSTEM "httphttps://hlrlookup.coolsmsclinkmobility.dk/dtd/hlr.dtd">
<hlr version="1.0">
<status>success</status>
  <lookup>
      <number>4542701272</number>
      <mcc>238</mcc>
      <mnc>01</mnc>
      <country>Denmark</country>
      <network>TDC Denmark</network>
      <imsi>238013420181448</imsi>
      <location>4540150048</location>
   </lookup>
</hlr> 

For the XML-document a DTD can be found on httphttps://hlrlookup.coolsmsclinkmobility.dk/dtd/hlr.dtd

Error Codes

key

Description

DATA_MISSING

Lookup return data missing

UNKNOWN_SUBSCRIBER

subscriber is unknown

ABSENT_SUBSCRIBER_SM

subscriber is not available

UNEXPECTED_DATA_VALUE

HLR lookup did not get the expected values

SYSTEM_FAILURE

There was an error in the system

FACILITY_NOT_SUPPORTED

This subscriber can not receive SMS

TELESERVICE_NOT_PROVISIONED

subscriber is not provided with TELESERVICE service

HLR_REJECT

The lookup was rejected by the HLR

HLR_ABORT

HLR interrupted the lookup

TIMEOUT

a timeout was made on the lookup

HLR_LOOKUP_ERROR

There was an error looking up the number