Inbound Routes

Introduction

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

Setup

LATA

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

SPID

The porting-corrected OCN 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 (primary, secondary, tertiary) in case of failover.

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

Destinations per Route

Users can configure the Destinations per Route number 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, then ClearIP returns one destination from the Primary Route Destinations, one destination from the Secondary Route Destinations, and one destination from the Tertiary Route Destinations. ClearIP returns 3 routes in the Contact header in the order described. The destination is selected randomly from the available route destinations in each destination priority level. For outbound routing, this means that after the first routing failure at the preferred provider, the route should failover to the backup provider.

If the Destinations per Route is 2, then ClearIP returns two destinations from the Primary Route Destinations, two destinations from the Secondary Route Destinations, and two destinations from the Tertiary Route Destinations. ClearIP returns 6 routes in the Contact header in the order described. For outbound routing, this means that after the first routing failure at the preferred provider, the route should failover to another destination at the preferred provider before trying the backup provider.

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, then ClearIP can be used to return a SIP 302 to direct the SBC to route certain inbound calls to a specific switch.

In this 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.

Inbound Routes

We did not restrict these routes to apply 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 your network and terminate on a different switch in your network without being sent to an external carrier and 2) calls that are received from trunks with your origination carriers.

How ClearIP processes calls in Inbound Routing

Exact order of priority of inbound routing rules

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