Secure SIP trunks
Calls reach MoreVoice over SIP trunks from your carrier (see phone numbers and SIP). A plain trunk sends its signalling (who calls whom) and its audio unencrypted over the network between the carrier and MoreVoice. A secure trunk encrypts both: SIP over TLS for the signalling, and SRTP for the audio.
| Transport | Default port | SRTP | Allowed |
|---|---|---|---|
udp |
5060 |
off |
Yes |
udp |
5060 |
optional |
No: SRTP needs SIP over TLS: over UDP the media keys would travel in clear text. Set the transport to TLS, or SRTP to “off”. |
udp |
5060 |
mandatory |
No: SRTP needs SIP over TLS: over UDP the media keys would travel in clear text. Set the transport to TLS, or SRTP to “off”. |
tls |
5061 |
off |
No: A secure trunk encrypts its audio as well: set SRTP to “mandatory”, or “optional” if the carrier cannot always do SRTP. |
tls |
5061 |
optional |
Yes |
tls |
5061 |
mandatory |
Yes |
SRTP keys are exchanged in the SDP (SDES), so they are protected only when SIP itself runs over TLS: that is why SRTP needs TLS. Crypto suites offered, strongest first: AES_CM_128_HMAC_SHA1_80, AES_CM_128_HMAC_SHA1_32.
Choosing a setting
Section titled “Choosing a setting”- Your carrier supports TLS and SRTP: use TLS with SRTP
mandatory. A call whose other side doesn’t offer encrypted audio is refused rather than carried in clear. - Your carrier does TLS, and SRTP only sometimes: use
optional, and ask the carrier when it can make SRTP mandatory. - Your carrier can’t do TLS: keep the trunk private instead: a dedicated link or a VPN to your carrier, and only the carrier’s addresses allowed on the connection.
What an encrypted call checks
Section titled “What an encrypted call checks”- Every audio packet from the carrier is authenticated before it is played. Packets that fail (a wrong key, a forged or replayed packet) are dropped and counted, and they can’t redirect the call’s audio to another address.
- Each call gets fresh keys, in both directions. A call’s details show how many packets were encrypted, and how many were refused and why; keys never appear in logs or call details.
- On a dedicated or on-prem install, the
SIP_SRTP_SUITESsetting narrows the suites offered and accepted: for example, onlyAES_CM_128_HMAC_SHA1_80where a security policy refuses 32-bit authentication tags.