PSTN routing

In this section, we will cover how to receive and send calls to PSTN. We will start with explaining how to receive calls.

Receiving calls from PSTN

The handling of the calls from the PSTN side can be split into the following steps:

  1. Trusting and authenticating the gateways/carriers sending you the calls coming from the PSTN side.
  2. Identifying the called party; as a call from PSTN will target a PSTN number, we have to translate it to a local subscriber.

Gateway authentication

The inbound PSTN gateways (often provided by Direct Inward Dialing (DID) providers) are, from an IP perspective, static devices. (They do not change their IP addresses.) At the same time, such gateways usually do not implement digest authentication; such a mechanism ...

Get Building Telephony Systems with OpenSIPS - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.