This document explains the relevant setup options.
You can send your INVITE requests to the Nexmo SIP endpoint:
Every INVITE request is authenticated with Digest authentication:
username- your Nexmo key
password- your Nexmo secret
If your system is not enabled for Service records (SRV records), you should load balance between the two closest endpoints and set the remaining ones as backup. The Nexmo SIP endpoints are:
Recipient numbers must be in E.164 format:
Set the Caller Line Identity (CLI) in the From header using E.164. For example:
The following codecs are supported:
- PCMA (G711a)
- PCMU (G711u)
- g729 (without annexdb)
Open traffic for all ports for the following IP ranges:
Nexmo supports out-of-band DTMF. For more information, see RFC2833.
Use the OPTIONS method to run a health check on our SIP trunks.
You can use the following protocols:
- UDP on port 5060
- TCP on port 5060
- TLS on port 5061
Transport Layer Security (TLS) is a cryptographic protocol designed to provide communications security to your SIP connection. You can use self-signed certificates on your user agent, Nexmo does not validate the certificate on the client side.
Connections using TLS 1.2 are accepted. Older protocols are disabled as they are considered insecure.
This section tells you how to:
To configure for SIP forwarding:
- Sign into Dashboard.
- In Dashboard, click Products > Numbers.
- Scroll to the number to forward from, then select Forward to SIP.
- Type a valid SIP URI and click Update. For example
sip:email@example.com. This field supports comma-separated entries for failover capabilities. For example:
sip:firstname.lastname@example.org,sip:email@example.com,sip:firstname.lastname@example.org. If you set more than one endpoint in Forward to SIP the call is initially forwarded to the first endpoint in the list. If this fails, the call is forwarded to the second endpoint in the list, and so on. Calls failover for the whole 5xx class of HTTP errors. The timeout is 486.
- You can specify a timeout for non responding SIP endpoints, by appending a
;timeout=xxxxxto the related URI. For example:
sip:email@example.com;timeout=2000,sip:firstname.lastname@example.org attempt to forward to the first URI, and in case of no response within 2 seconds it will try the second one. Timeouts are expressed in milliseconds and can range from 2000 to 20000. This is useful to quickly fail over when an endpoint is temporarily unavailable. The default value is 5000 ms.
- Ensure that the traffic generated from the following IP addresses can pass your firewall:
Note: Nexmo supports TLS on inbound connections. To enable this, enter a valid URI in the format sip:user@(IP|domain);transport=tls. For example, sip:email@example.com;transport=tls. By default, traffic is sent to port 5061. To use a different port, add it at the end of your domain or IP address: sip:firstname.lastname@example.org:5062;transport=tls.
We have provided examples for a number of different SIP capable systems:
- Avaya SBCe
- Cisco CUCM/CUBE
- MiTel MiVoice and MiTel Border Gateway
- ShoreTel Director and InGate SIParator
- Skype for Business with Oracle E-SBC
- NEC SV9100