Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, tutorials, and more.

Encrypting voice calls

In Elastix/Asterisk, the SIP calls can be encrypted in two ways: encrypting the SIP protocol signaling and encrypting the RTP voice flow. To encrypt the SIP protocol signal, we will use the Transport Layer Security (TLS) protocol.

How to do it…

Create security keys and certificates. For this example, we will store our keys and certificates in the /etc/asterisk/keys folder.

To create this folder, enter the mkdir /etc/asterisk/keys command.

Change the owner of the folder from the user root to the user asterisk: chown asterisk:asterisk /etc/asterisk/keys