How It Works

Each call always has at least two parties: one that is calling and the other one (or more than one) that is receiving the call. CarrierX allows its users to call from a landline or mobile phone and connect to a SIP phone, SIP server, office PBX, etc. In a word, to almost any device that can send or receive voice calls.

Let’s see how the calls between regular phones are routed and what CarrierX changes in this flow.

Calling between Two Regular Phones

Long-long time ago, even before the internet, all the phones were connected using copper wire. A phone normally needed a direct wired connection to another phone or to a telephone switch (or central office), which routed all the calls to other phones.

Routing between Two Regular Phones

This connection was physical, and it was called POTS (plain old telephone service). First connections between several phones were routed manually, with the help of human telephone operators. Later, automatic switches appeared, and all the phones and these switches were aggregated into world circuit-switched telephone networks, called PSTN—public switched telephone network. Yet still this system was mostly analog.

Digitalization brought new possibilities. Together with the automation of the telephone switches, the phone lines were upgraded and now carry the digital signals in the form of packets. But even with these possibilities, the last mile between the telephone service provider and the landline phone remains analog in most cases.

PSTN remains the network of the copper phone lines. It is a circuit-switched network, and it requires a physical connection between two points—two phone numbers—to complete a call. You cannot dial a computer IP address from such a phone to connect to the VoIP application.

Calling from Regular Phone

DIDs are a part of CarrierX infrastructure. These virtual phone numbers allow the callers to dial them and connect to the VoIP applications (CarrierX based or hosted by the partners) without even knowing they do that. Regular phones call the DIDs like they do with other regular phones, dialing a phone number. Most often this DID number is located in the same geographical region with the regular phones, so the caller just makes a usual local phone call, but is connected, for example, to a SIP phone, a PBX, or to another regular phone.

The call starts with dialing a number using a landline phone. This call goes through PSTN using the wired or mobile connection.

When the call reaches PSTN, it is then routed to the CarrierX DID, just the way it is usually routed to another regular phone.

That’s where the magic begins.

CarrierX DIDs hand the calls over to the trunk groups. Think of a trunk group as a highway with many lanes going in different directions, each to its own destination and each holding many vehicles. These lanes are trunks, and the vehicles are your calls.

DIDs are associated with the trunk groups, and trunks are associated with endpoints. Thus, each DID processes your call and directs it to the right trunk group. Trunk group, in its turn, directs the call to the right trunk so that it could be forwarded to the correct destination—an endpoint, either hosted or third-party.

The endpoint routes the call to the representation of the phone on the other end of the line. This can be a software phone—a SIP phone developed by a third party, a voicemail, a set of instructions that tells what is to be done next with the incoming phone call (answer it, turn on a recording with further instructions, even hang up); or this can be another regular phone or even several ones, which are connected into a conference.

Inbound Routing

Calling from Softphone

The calls going to regular phones are similar to calling from regular phones, the process just goes in reverse direction.

An external application has to connect to a configured CarrierX endpoint. This endpoint passes the control over to the trunk associated with it. Trunk directs the call to the DID associated with the trunk group. And then the call goes from DID to PSTN, and then to the regular phone (either landline or mobile).

Outbound Routing

Inbound vs. Outbound Calls

In CarrierX, inbound and outbound calls are differentiated by the direction of the call in relation to the rented DIDs.

When you call from a regular phone to CarrierX DID, the DID accepts the call, so it is inbound for the DID.

When a CarrierX DID is the caller, it initiates an outgoing connection, thus the call is outbound.

Conference, Conference Playback, and Voicemail endpoints always use outbound connections, the DIDs associated with them call out to regular phones.

FlexML, Mediator, and Third Party endpoints can have both inbound and outbound connections. You should bear this in mind when you use these types of endpoints with international calls, as such calls can cost more.

Further Reading

Read the following articles to get a better understanding of how things work in CarrierX: