Inbound Routes

The Inbound Routes feature allows service providers to create routing rules based on the dialed (DID) number.

Setup

When adding new inbound routes, it is important to consider the following aspects of the Inbound Routes page.

LATA

This is the LATA of the LRN of the called number. This must match the Called LRN LATA field in the SIP Messages page.

SPID

This is the porting-corrected OCN (Operating Company Number) of the called number. This must match the Called LRN SPID field in the SIP Messages page.

Prefix

A route can be matched to a prefix for a dialed number, or the prefix field can be left blank for the route to apply to any calling number. For Inbound Routes, the prefix refers to the dialed number regardless of whether the number has been ported.

Route Destinations

Routes are created by configuring groups of destinations. A destination must be either an IP address or a hostname followed by an optional port and optional tags. A destination may also refer to a specific trunk ID to route through a specific trunk group. Users can configure destinations based on priority in case of failover. Up to 5 levels of priority are available for configuration: primary, secondary, tertiary, quaternary and quinary.

Within each destination priority level, multiple possible destinations can be listed separated by a comma to evenly distribute traffic.

Destinations per Route

The Destinations per Route number can be configured to control the route failover order. The Destinations per Route number tells ClearIP how many routes from each route destination priority level to return in the Contact header.

If the Destinations per Route is 1, ClearIP returns one destination from the Primary Route Destinations, one destination from the Secondary Route Destinations, one destination from the Tertiary Route Destinations, one destination from the Quaternary Route Destinations and one destination from the Quinary Route Destinations. ClearIP returns 5 routes in the Contact header in the order described. The destination is selected randomly from the available route destinations in each destination priority level.

If the Destinations per Route is 2, then ClearIP returns two destinations from the Primary Route Destinations, two destinations from the Secondary Route Destinations, two destinations from the Tertiary Route Destinations, two destinations from the Quaternary Route Destinations and two destinations from the Quinary Route Destinations. ClearIP returns 10 routes in the Contact header in the order described.

If the Destinations per Route value is equal to or greater than the number of destinations in any particular destination priority level, then all listed destinations for that destination priority level are returned in the Contact header.

Examples

Route inbound calls to specific switch

If ClearIP is integrated to receive inbound calls from an SBC (or proxy) and the SBC must send the call to one of many switches, ClearIP can be used to return a SIP 302 to direct the SBC to route certain inbound calls to a specific switch.

For example, one switch with IP address 1.1.1.1 provides service for 3 phone numbers, and another switch with IP address 2.2.2.2 provides service for 3 other phone numbers. An Inbound Route is created for each individual phone number to define the correct switch to which the SBC should route the call.

LATASPIDPrefixPrimary Route DestinationsSecondary Route DestinationsTertiary Route DestinationsCommentSBCService ProviderGroupUserCalling CountryCalling Number
140452660601.1.1.1
140452660611.1.1.1
140452660621.1.1.1
140467810002.2.2.2
140467810012.2.2.2
140467810022.2.2.2

These routes are not restricted to the Inbound Service Provider that typically defines calls received from external carriers. The above example is intended to apply to both 1) calls that originate on a switch within the network and terminate on a different switch in the network without being sent to an external carrier and 2) calls that are received from trunks within origination carriers.

How ClearIP Processes Calls in Inbound Routing

Exact Order of Priority of Inbound Routing Rules

As ClearIP processes calls, it will look for an Inbound Route. If only one route matches, it will use that one. If there are multiple routing rules that match, it will use the one with the longest prefix match.

On the Inbound Routes page, there are several columns to the right of the Comment column. The columns to the right define the inbound route’s limiters. When a routing rule is chosen by ClearIP for a particular call, only one of those limiters will apply. The priority of the limiters is as follows, from highest priority to lowest:

  1. Calling Number
  2. Calling Country
  3. User
  4. Group
  5. Service Provider
  6. SBC

There are also several columns to the left of the Comment column. These can be thought of as filters. The LATA, SPID, and Prefix filters will be used to select the rule. Instead of looking at one of these, ClearIP will use all three filters in different combinations, with the longest prefix available taking priority. The priority of the filter combinations is as follows, from highest priority to lowest:

  1. LATA, SPID, and Prefix
  2. SPID and Prefix
  3. LATA and Prefix
  4. Prefix

The highest priority limiter and the longest, most specific set of filters will be used to find the highest priority Inbound Route. This is illustrated in the below table:

LATASPIDPrefixSBCService ProviderGroupUserCalling CountryCalling Number
1234512341123456789013210987654
123451234112345678913210987654
12345123411234567813210987654
1234512341123456713210987654
123451234112345613210987654
12345123411234513210987654
1234512341123413210987654
123451234112313210987654
12345123411213210987654
1234512341113210987654
123451234113210987654
12345123413210987654
12341123456789013210987654
1234112345678913210987654
123411234567813210987654
12341123456713210987654
1234112345613210987654
123411234513210987654
12341123413210987654
1234112313210987654
123411213210987654
12341113210987654
1234113210987654
123413210987654
123451123456789013210987654
12345112345678913210987654
1234511234567813210987654
123451123456713210987654
12345112345613210987654
1234511234513210987654
123451123413210987654
12345112313210987654
1234511213210987654
123451113210987654
12345113210987654
1234513210987654
1123456789013210987654
112345678913210987654
11234567813210987654
1123456713210987654
112345613210987654
11234513210987654
1123413210987654
112313210987654
11213210987654
1113210987654
113210987654
13210987654
12345123411234567890United States
1234512341123456789United States
123451234112345678United States
12345123411234567United States
1234512341123456United States
123451234112345United States
12345123411234United States
1234512341123United States
123451234112United States
12345123411United States
1234512341United States
123451234United States
123411234567890United States
12341123456789United States
1234112345678United States
123411234567United States
12341123456United States
1234112345United States
123411234United States
12341123United States
1234112United States
123411United States
12341United States
1234United States
1234511234567890United States
123451123456789United States
12345112345678United States
1234511234567United States
123451123456United States
12345112345United States
1234511234United States
123451123United States
12345112United States
1234511United States
123451United States
12345United States
11234567890United States
1123456789United States
112345678United States
11234567United States
1123456United States
112345United States
11234United States
1123United States
112United States
11United States
1United States
United States
12345123411234567890Example Service ProviderExample GroupExample User
1234512341123456789Example Service ProviderExample GroupExample User
123451234112345678Example Service ProviderExample GroupExample User
12345123411234567Example Service ProviderExample GroupExample User
1234512341123456Example Service ProviderExample GroupExample User
123451234112345Example Service ProviderExample GroupExample User
12345123411234Example Service ProviderExample GroupExample User
1234512341123Example Service ProviderExample GroupExample User
123451234112Example Service ProviderExample GroupExample User
12345123411Example Service ProviderExample GroupExample User
1234512341Example Service ProviderExample GroupExample User
123451234Example Service ProviderExample GroupExample User
123411234567890Example Service ProviderExample GroupExample User
12341123456789Example Service ProviderExample GroupExample User
1234112345678Example Service ProviderExample GroupExample User
123411234567Example Service ProviderExample GroupExample User
12341123456Example Service ProviderExample GroupExample User
1234112345Example Service ProviderExample GroupExample User
123411234Example Service ProviderExample GroupExample User
12341123Example Service ProviderExample GroupExample User
1234112Example Service ProviderExample GroupExample User
123411Example Service ProviderExample GroupExample User
12341Example Service ProviderExample GroupExample User
1234Example Service ProviderExample GroupExample User
1234511234567890Example Service ProviderExample GroupExample User
123451123456789Example Service ProviderExample GroupExample User
12345112345678Example Service ProviderExample GroupExample User
1234511234567Example Service ProviderExample GroupExample User
123451123456Example Service ProviderExample GroupExample User
12345112345Example Service ProviderExample GroupExample User
1234511234Example Service ProviderExample GroupExample User
123451123Example Service ProviderExample GroupExample User
12345112Example Service ProviderExample GroupExample User
1234511Example Service ProviderExample GroupExample User
123451Example Service ProviderExample GroupExample User
12345Example Service ProviderExample GroupExample User
11234567890Example Service ProviderExample GroupExample User
1123456789Example Service ProviderExample GroupExample User
112345678Example Service ProviderExample GroupExample User
11234567Example Service ProviderExample GroupExample User
1123456Example Service ProviderExample GroupExample User
112345Example Service ProviderExample GroupExample User
11234Example Service ProviderExample GroupExample User
1123Example Service ProviderExample GroupExample User
112Example Service ProviderExample GroupExample User
11Example Service ProviderExample GroupExample User
1Example Service ProviderExample GroupExample User
Example Service ProviderExample GroupExample User
12345123411234567890Example Service ProviderExample Group
1234512341123456789Example Service ProviderExample Group
123451234112345678Example Service ProviderExample Group
12345123411234567Example Service ProviderExample Group
1234512341123456Example Service ProviderExample Group
123451234112345Example Service ProviderExample Group
12345123411234Example Service ProviderExample Group
1234512341123Example Service ProviderExample Group
123451234112Example Service ProviderExample Group
12345123411Example Service ProviderExample Group
1234512341Example Service ProviderExample Group
123451234Example Service ProviderExample Group
123411234567890Example Service ProviderExample Group
12341123456789Example Service ProviderExample Group
1234112345678Example Service ProviderExample Group
123411234567Example Service ProviderExample Group
12341123456Example Service ProviderExample Group
1234112345Example Service ProviderExample Group
123411234Example Service ProviderExample Group
12341123Example Service ProviderExample Group
1234112Example Service ProviderExample Group
123411Example Service ProviderExample Group
12341Example Service ProviderExample Group
1234Example Service ProviderExample Group
1234511234567890Example Service ProviderExample Group
123451123456789Example Service ProviderExample Group
12345112345678Example Service ProviderExample Group
1234511234567Example Service ProviderExample Group
123451123456Example Service ProviderExample Group
12345112345Example Service ProviderExample Group
1234511234Example Service ProviderExample Group
123451123Example Service ProviderExample Group
12345112Example Service ProviderExample Group
1234511Example Service ProviderExample Group
123451Example Service ProviderExample Group
12345Example Service ProviderExample Group
11234567890Example Service ProviderExample Group
1123456789Example Service ProviderExample Group
112345678Example Service ProviderExample Group
11234567Example Service ProviderExample Group
1123456Example Service ProviderExample Group
112345Example Service ProviderExample Group
11234Example Service ProviderExample Group
1123Example Service ProviderExample Group
112Example Service ProviderExample Group
11Example Service ProviderExample Group
1Example Service ProviderExample Group
Example Service ProviderExample Group
12345123411234567890Example Service Provider
1234512341123456789Example Service Provider
123451234112345678Example Service Provider
12345123411234567Example Service Provider
1234512341123456Example Service Provider
123451234112345Example Service Provider
12345123411234Example Service Provider
1234512341123Example Service Provider
123451234112Example Service Provider
12345123411Example Service Provider
1234512341Example Service Provider
123451234Example Service Provider
123411234567890Example Service Provider
12341123456789Example Service Provider
1234112345678Example Service Provider
123411234567Example Service Provider
12341123456Example Service Provider
1234112345Example Service Provider
123411234Example Service Provider
12341123Example Service Provider
1234112Example Service Provider
123411Example Service Provider
12341Example Service Provider
1234Example Service Provider
1234511234567890Example Service Provider
123451123456789Example Service Provider
12345112345678Example Service Provider
1234511234567Example Service Provider
123451123456Example Service Provider
12345112345Example Service Provider
1234511234Example Service Provider
123451123Example Service Provider
12345112Example Service Provider
1234511Example Service Provider
123451Example Service Provider
12345Example Service Provider
11234567890Example Service Provider
1123456789Example Service Provider
112345678Example Service Provider
11234567Example Service Provider
1123456Example Service Provider
112345Example Service Provider
11234Example Service Provider
1123Example Service Provider
112Example Service Provider
11Example Service Provider
1Example Service Provider
Example Service Provider
12345123411234567890Example SBC
1234512341123456789Example SBC
123451234112345678Example SBC
12345123411234567Example SBC
1234512341123456Example SBC
123451234112345Example SBC
12345123411234Example SBC
1234512341123Example SBC
123451234112Example SBC
12345123411Example SBC
1234512341Example SBC
123451234Example SBC
123411234567890Example SBC
12341123456789Example SBC
1234112345678Example SBC
123411234567Example SBC
12341123456Example SBC
1234112345Example SBC
123411234Example SBC
12341123Example SBC
1234112Example SBC
123411Example SBC
12341Example SBC
1234Example SBC
1234511234567890Example SBC
123451123456789Example SBC
12345112345678Example SBC
1234511234567Example SBC
123451123456Example SBC
12345112345Example SBC
1234511234Example SBC
123451123Example SBC
12345112Example SBC
1234511Example SBC
123451Example SBC
12345Example SBC
11234567890Example SBC
1123456789Example SBC
112345678Example SBC
11234567Example SBC
1123456Example SBC
112345Example SBC
11234Example SBC
1123Example SBC
112Example SBC
11Example SBC
1Example SBC
Example SBC
12345123411234567890
1234512341123456789
123451234112345678
12345123411234567
1234512341123456
123451234112345
12345123411234
1234512341123
123451234112
12345123411
1234512341
123451234
123411234567890
12341123456789
1234112345678
123411234567
12341123456
1234112345
123411234
12341123
1234112
123411
12341
1234
1234511234567890
123451123456789
12345112345678
1234511234567
123451123456
12345112345
1234511234
123451123
12345112
1234511
123451
12345
11234567890
1123456789
112345678
11234567
1123456
112345
11234
1123
112
11
1