Documentation
Connect Telnyx to Open Voice Shield
Ask AI about this page
One routing change per direction. Inbound: a SIP Connection with FQDN authentication pointing at sip.ovs.telecomsxchange.com port 5060, your numbers routed to it, your platform as the destination on the Network page. Outbound: send calls to the same ingress with sip.telnyx.com as the destination, and add the Network page's egress address to an IP-authenticated Telnyx connection.
Before you start#
- An Open Voice Shield account. Sign up with your company e-mail and verify your business. A person reviews it, usually within one business day, and US$5 of credit is added on approval.
- A Telnyx account with at least one number and permission to create SIP Connections and Outbound Voice Profiles.
- For outbound calls, the public IP address your platform sends SIP from, the egress address after any NAT, not the one on its interface.
- Firewall: UDP or TCP 5060 to the ingress, and UDP 30000–40000 open in both directions for the RTP your media endpoints exchange with our relay. See the firewall rules.
How each direction works#
Open Voice Shield sits between Telnyx and the rest of your platform, and each direction needs one configuration change. Inbound: a call from the PSTN reaches your Telnyx number, Telnyx sends it to the ingress, and we analyze it and relay it on to the destination you configure on the Network page: your application or switch. Outbound: your platform sends the call to the ingress, and we relay it on to Telnyx for termination. Telnyx must then accept calls arriving from our egress address, which the Network page shows you.
Neither direction needs changes to your application, and you can send every call or only a sample.
Step 1: whitelist the sending addresses#
Open the Network page in the portal and add the addresses that will send SIP to the ingress as CIDR entries. The whitelist is the authentication: there are no credentials, and an INVITE from any other address is answered 403. For inbound calls that means Telnyx's published signalling IP ranges, taken from Telnyx's current documentation. For outbound calls it means your own platform's public egress address (a single host is a /32).
Step 2: route inbound numbers to the ingress#
On Telnyx, a number rings whatever connection it routes to. Create a SIP Connection whose FQDN authentication names the ingress, route the numbers you want analyzed to it, and Telnyx sends each of their calls straight to us. The dialled number and caller ID pass through unchanged, and we relay each accepted call on to the destination you set on the Network page, your own platform.
| Field | Value |
|---|---|
| Authentication | FQDN |
| FQDN | sip.ovs.telecomsxchange.com, port 5060, confirm the address on your Network page |
| Transport | UDP or TCP |
| Codecs | G.711 U-law (PCMU) and G.711 A-law (PCMA) first |
| Media encryption | off: plain RTP towards the ingress |
| Field | Value |
|---|---|
| Connection | the FQDN SIP Connection above |
Field names follow Telnyx's documentation. Consoles change, so check Telnyx's current docs.
- The INVITE must carry SDP, an early offer. An INVITE without SDP is answered 488.
- Offer G.711 (PCMU or PCMA) first. Anything else is relayed but produces no transcript and no verdict.
- Do not send REGISTER to the ingress: it is answered 403. Calls are authorized by source IP alone.
Step 3: send outbound calls through the ingress#
For outbound calls, your platform routes its calls to sip.ovs.telecomsxchange.com:5060 over UDP or TCP, and the destination you set on the Network page becomes sip.telnyx.com, the Telnyx termination URI, so each analyzed call is relayed on to Telnyx for the PSTN. Telnyx also has to accept the hop: a connection must recognize our egress address and carry an Outbound Voice Profile so it can dial out.
| Field | Value |
|---|---|
| Authentication | IP address, the Open Voice Shield egress address shown on your Network page |
| Outbound Voice Profile | attached: a connection terminates calls only through one |
Field names follow Telnyx's documentation. Consoles change, so check Telnyx's current docs.
Or route a sample#
Sampling is supported, so you can send only part of your traffic. If a call-control application drives your calls, the sample is one if around the dial, which sends the sampled share to the Open Voice Shield SIP URI instead of the direct route:
Your call handler: a 1-in-10 sample
if random(10) = 1 # one call in ten takes the analyzed hop
dial sip:{number}@sip.ovs.telecomsxchange.com
else
dial {number} # your existing direct route
Or sample deterministically with a subset: route one number range to the FQDN connection and leave the rest where they are, or send just one connection's traffic through the ingress while the others stay direct.
Calls on both paths reach the same destination. The sampled share takes one extra hop, and each sampled call comes back with a recording, per-channel transcript and verdict.
Step 4: place a test call#
Send a real call through each direction you configured and keep both parties talking for at least 30 seconds. A leg that never speaks produces a one-sided transcript. After hang-up the call appears in Calls in the console with its recording, per-channel transcript and verdict, usually within a minute.
- Rejected 403? The source address is not whitelisted. Compare the sending address with the CIDR entries on the Network page.
- Rejected 488? The INVITE carried no SDP, or offered SRTP. Send an early offer as plain RTP.
- One-way audio? Signalling is not the cause. Check the firewall rules on UDP 30000–40000 between your media endpoints and the ingress.
For anything else, Troubleshooting lists every rejection code and the check that clears it.
Frequently asked questions#
Does Telnyx register to Open Voice Shield?
No. Nothing registers in either direction, and a REGISTER sent to the ingress is answered 403. A SIP Connection with FQDN authentication sends each inbound INVITE straight to the address it names, and calls are authorized by the source IP you whitelist on the Network page, so no credentials are exchanged.
Which addresses do I whitelist for inbound calls?
Telnyx's published signalling IP ranges. Take them from Telnyx's current documentation and add them as CIDR entries on the Network page. Calls your own platform sends to the ingress need its egress address whitelisted instead.
Do I have to change my application to get analysis?
No. Both directions are routing changes: which connection a number routes to, and where your outbound calls are sent. You can analyze every call or a sample without changing your application.
To try it, create an account. Once your business is approved, the account has US$5 of credit, enough to analyze your first calls.