Current Location :Home > About Us > News Center > BLOG > Number Portability (LNP) Lookup and Routing

Number Portability (LNP) Lookup and Routing

Nov 27Source:RedstoneIntelligent Browse: 1
Background

Number Portability (LNP) Lookup and Routing

A dialled number no longer identifies its carrier. A subscriber can keep a geographic number while moving to a different operator, and the network has to discover the current serving network before it can route the call. Where that discovery is missing or stale, calls fail in a way that looks like a carrier fault: the number is valid, the format is right, and the receiving network simply refuses a call delivered to the wrong place.

What LNP Actually Changes

Number portability separates the number a person dials from the network that serves it. In its common form, a query against a portability database returns a location routing number, often described as an LRN, which identifies the current network. The call is then routed using that routing number while the original dialled digits are carried forward so that the terminating network still knows which subscriber was intended.

This is why a routing table built only on number prefixes eventually goes wrong. A prefix may once have implied a particular carrier, and after a port the same prefix can lead anywhere. The route decision needs the result of a lookup, and the original digits must survive the lookup rather than being replaced by the routing number at the sip level.

ElementRoleFailure if ignored
Dialled numberThe number the caller enteredSubscriber identity is lost
Portability queryReturns the current serving networkCalls go to the old carrier
LRN or routing numberIdentifies the network to route towardRoute selection has no target
Original called partyCarried alongside the routing numberTerminating network cannot find the subscriber
Cache entryAvoids a query on every callStale entry after a port completes
Porting window statusMarks a number in transitionTemporary routing is not applied

When to Query the Database

Query timing is a design decision with two competing costs. Querying on every call gives the freshest answer but adds latency to call setup and creates a dependency on the database being available. Querying once and caching is fast but can route to the previous carrier for as long as the cache lives. Most designs query at the point where the call enters the operator's network and then cache the answer for a bounded period.

The cache lifetime should be shorter than the time a number is likely to remain stable and long enough that the database is not overloaded. It is also worth distinguishing a positive result from a negative one. A query that says a number has not been ported is as cacheable as one that says it has, but an error or timeout should never be cached as a negative answer, because that would send every subsequent call down the wrong route for the whole cache period.

The Porting Window Is a Special Case

During a port there is a period in which the number may be reachable through either network, and the exact hours are agreed between the operators. A routing design that treats the database as absolute will break calls during this window. A design that recognises a porting-in-progress result and can temporarily prefer one network, then switch at the agreed time, keeps calls working while the administrative change completes.

  • Query at the network boundary rather than at every internal hop
  • Cache positive and confirmed negative results, but never cache errors
  • Set a cache lifetime shorter than the expected stability of a number
  • Preserve the original dialled digits alongside the routing number
  • Handle a porting-in-progress result with a temporary route
  • Alert on query errors as a routing fault, not a nuisance
  • Log the lookup result with the call so a failure can be reconstructed

Routing Table Design

A workable table separates three decisions. The first decides whether the number is one that can be ported at all. The second obtains the current network through a lookup. The third selects a carrier or trunk group based on that result. Collapsing these into one large prefix table produces a configuration that is hard to reason about and impossible to change safely during a porting window.

Fallback deserves explicit attention. If the lookup service is unavailable, the platform can either fail the call or route on the historical prefix. Neither is universally correct. Failing the call is safe but visible; routing on the prefix may work for unported numbers and fail for ported ones. The choice should be deliberate, documented, and different for business-critical numbers than for general traffic.

Design choiceSimple approachMore robust approach
Lookup timingOn every callAt entry, with bounded caching
Cache resultAll answers cached the sameErrors excluded; negatives bounded
Route constructionOne large prefix tableSeparate eligibility, lookup, and carrier choice
Lookup failureFail the callPolicy-based fallback with an alert
Porting windowTreated as an ordinary resultTemporary route with a switch time
DiagnosticsCall succeeded or failedLookup result logged with each call

Debugging a Suspected Porting Fault

The symptom of a stale portability answer is distinctive: calls to one number or a small group of numbers fail while calls to neighbouring numbers succeed. That pattern points at a per-number lookup rather than a trunk or a general routing problem. The next step is to compare the lookup result held by the platform with the current authoritative answer and check the age of the cached entry.

It is also worth confirming which number was actually used in the query. A platform that strips a prefix before lookup, or that normalises the number into a different national format, may be querying a number that is not the one that was ported. This connects directly to dial plan consistency, because a number represented in three formats across three systems will produce three different lookup outcomes.

Evidence to Collect

A useful fault record contains the dialled digits, the number used for the lookup, the returned routing number, the cache age, the carrier selected, and the response from that carrier. With those six items the question of whether the fault lies in lookup, cache, route selection, or carrier acceptance can be answered without speculation. Without them, the same fault is often escalated to the carrier first and left there.

  • Confirm the exact digits used in the portability query
  • Check the age and source of the cached answer
  • Compare the selected carrier with the current serving network
  • Preserve the original called party in the outbound request
  • Apply the porting-window route if a port is in progress
  • Escalate with lookup results attached, not only with the call ID

Keeping the Design Understandable

Portability routing is a chain of decisions, and an operator facing a failed call needs to see where the chain broke. A configuration that hides the lookup inside a single large rule makes that impossible. Documenting the eligibility check, the query, the cache, and the carrier choice as separate steps means the engineer can inspect each one, and it means a change to one step can be tested without disturbing the others.

  • Keep eligibility, lookup, and carrier choice as separate configuration steps
  • Record the cache age alongside each lookup result in call records
  • Test the fallback policy deliberately, not only during a real outage
  • Keep a contact for the database provider in the escalation path
  • Review the cache lifetime whenever porting volumes change
  • Re-test routing after the agreed porting window closes

Redstone Approach

Redstone REX series IP-PBX platforms and RGW gateways support number translation rules, carrier and trunk-group routing, and configurable number presentation so that portability results can be applied without losing the original called party. Routing policies can separate lookup, carrier selection, and fallback behaviour, and call detail records capture the digits and route used for each attempt. SBC deployments can terminate carrier interconnects while keeping internal dial plans unchanged.

About Redstone

Redstone Systems, Inc. founded in Delaware, USA in December 2002, has been the ODM vendor for many well-known communications companies, serving the Southeast Asian market. In 2020, Redstone Systems will begin to return to the North America market with its self-developed brand.


Redstone has a complete product line of intelligent voice gateways, providing IP-PBXs, analog VoIP gateways (FXS/FXO), digital VoIP gateways (E1/T1), border appliances, and session boundary controllers (SBCs).


With advanced technology in digital signal processor (DSP), speech coding and speech processing, as well as efficient operational tools such as cloud remote management, auto provisioning, Redstone gateways are widely used in markets of enterprise communications, cloud communications, call centers, operators’ IMS/SIP trunks, bringing users friendly, efficient and reliable communication experience.


For more information about Redstone, You can follow us on Facebook, Linkedin, and Youtube to be the first to get the latest news.

Contact Us

Mobile Phonel

Email: globalmarketing@redstonesystems.com

Address: 12816 SE 75th Court, Newcastle WA 98059, USA

Contact Us
We will do our best to contact you as soon as possible. In the meantime, please contact us for more information.
  • First Name*

  • Last name*

  • Company Name*

  • Email*

  • Phone

  • Product*

  • Message

  • I have read and agreed Privacy Policy
Privacy_policy
×

Privacy Statement

Platform information submission - privacy agreement

● Privacy Policy

We are committed to protecting the privacy, personal data and personal data (collectively referred to as "personal data") provided by you when using this website. Make us comply with the highest standards in terms of collection, use, storage and transmission of personal data (laws and regulations related to privacy of personal data) and consumer protection. To ensure that you have full confidence in the handling of personal data on this website, you must carefully read and understand the provisions of the privacy policy. This website (hereinafter referred to as "us") respects and protects the privacy of users. In particular, once you use this website, you will be deemed to accept, agree, promise and confirm this privacy agreement; You disclose your personal data to us voluntarily with the required consent; You will abide by any modification of this privacy policy; You agree that our relevant business personnel will contact you regarding the products and services you may be interested in (unless you have indicated that you do not want to receive such messages). With your consent, we will collect, manage and monitor the types of personal data collected


1. Scope of application

It is our unremitting pursuit to provide users with better, better and more personalized services. We also hope that the services we provide will be more convenient for your needs. This privacy policy applies to all information collection services provided by this website. You can visit this website and use the services provided by this website using this privacy policy


2. What information do we collect

In order to provide you with our various services, you need to provide personal data information, including personal data and anonymous data, including but not limited to: personal data (your name, gender, age, date of birth, telephone number, fax number, address or mailing address, e-mail address, etc.)


3. How to use the collected information

The purposes and purposes of collecting personal data and anonymous data are as follows: to provide you with our services through this website; When you use our website, you can identify and confirm your identity; Let you get the service for you when you use this website; The relevant business personnel of this website can contact you when necessary; Make it more convenient for you to use this website; The personal data and anonymous data provided by you to us will only be retained until the collection purpose has been achieved, unless they are retained due to applicable laws and regulations. The ownership of personal data and disclosure of all data collected on our website are owned by us and will not be leased or sold to any unrelated third party

 

4. How do we protect information

For the protection of personal data, we implement appropriate physical, electronic and management measures to protect and guarantee the safety of your personal data. We try our best to ensure that any personal data collected through this website is free from any nuisance of a third party unrelated to us. The security measures we take are not limited to: physical measures: the records with your personal data will be stored in a locked place Electronic measures: the computer data with your personal data will be stored in the computer system and storage media subject to strict login restrictions Management measures: only employees authorized by us can access your personal data, These employees need to comply with our internal rules on the confidentiality of personal data. If you are aware of any security loopholes on this website, please contact us in time so that we can take appropriate actions as soon as possible; Despite the implementation of the above security measures, we cannot guarantee the absolute security of data transmission on the Internet, so we cannot absolutely guarantee that the personal data and anonymous data you provide to us through this website are safe at all times. We will not be responsible for any unauthorized access to your personal data, and we will not be responsible for any losses and damages incurred or caused in this regard.

 

5. Juvenile Protection Law

The minor has provided personal data to this website without the approval or consent of any parent or guardian. Please contact the public telephone number and customer service telephone number on this website in time to ensure that the data are removed

 

6. Revision and effectiveness of privacy policy

With the expansion of the service scope of this website, we may revise the Legal Statement and Privacy Policy from time to time, which forms a part of this Legal Statement and Privacy Policy. In order to prevent you from being informed of such revisions, please read this Legal Statement and Privacy Policy frequently. In any way, if you continue to use our services, you agree to be bound by the revised Legal Statement and Privacy Policy