Skip to content

Commit 79292c1

Browse files
fix: remove static RTP Media IP addresses from SIP networking docs (#953)
Vapi does not have static IP addresses for RTP Media. This commit removes the IPs 44.229.228.186 and 44.238.177.138 from all RTP media sections and updates the documentation to clearly communicate that RTP media uses dynamic IPs. SIP signalling IPs are unchanged. DEVREL-513 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 10679da commit 79292c1

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

fern/advanced/sip/sip-networking.mdx

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ When you integrate a SIP trunk with Vapi, your firewall and network infrastructu
1010

1111
**In this reference, you'll find:**
1212

13-
- All IP addresses and ports used by Vapi for SIP traffic
14-
- RTP media port ranges and directionality details
13+
- All IP addresses and ports used by Vapi for SIP signalling
14+
- RTP media port ranges, directionality details, and dynamic IP behavior
1515
- Recommended firewall rules for inbound and outbound traffic
1616

1717
<Note>
@@ -26,9 +26,9 @@ The table below summarizes every IP address, port, and protocol you need to allo
2626
| --- | --- | --- | --- | --- |
2727
| SIP signalling | `44.229.228.186`, `44.238.177.138` | `5060` | UDP | Bidirectional |
2828
| SIP signalling (TLS) | `44.229.228.186`, `44.238.177.138` | `5061` | TLS | Bidirectional |
29-
| RTP media | `44.229.228.186`, `44.238.177.138` | `40000`-`60000` | UDP | Bidirectional |
29+
| RTP media | No static IPs (dynamic) | `40000`-`60000` | UDP | Bidirectional |
3030

31-
You can also use the DNS hostname `sip.vapi.ai`, which resolves to both IP addresses listed above.
31+
You can also use the DNS hostname `sip.vapi.ai`, which resolves to the SIP signalling IP addresses listed above.
3232

3333
## SIP signalling
3434

@@ -58,10 +58,11 @@ The hostname `sip.vapi.ai` resolves to both signalling IP addresses. You can con
5858

5959
## SIP media (RTP)
6060

61-
RTP media (voice audio) is sourced from the same infrastructure as SIP signalling. The media IP addresses are:
61+
Vapi does not use static IP addresses for RTP media (voice audio). The media source IP addresses are dynamically assigned and may change between calls. Because of this, you should not rely on allowlisting specific IPs for RTP media traffic.
6262

63-
- `44.229.228.186/32`
64-
- `44.238.177.138/32`
63+
<Warning>
64+
Unlike SIP signalling, RTP media does **not** originate from a fixed set of IP addresses. Your firewall rules for RTP media should allow traffic based on port ranges rather than specific source IPs.
65+
</Warning>
6566

6667
### Port range
6768

@@ -81,7 +82,7 @@ Vapi uses **UDP ports 40000 through 60000** for RTP media traffic.
8182

8283
## Firewall rules
8384

84-
Configure your firewall to allow the following traffic. Both IP addresses must be allowlisted, as Vapi may use either one for any given call.
85+
Configure your firewall to allow the following traffic. Both SIP signalling IP addresses must be allowlisted, as Vapi may use either one for any given call. For RTP media, allow traffic on the full port range without IP restrictions since Vapi uses dynamic IPs for media.
8586

8687
### Inbound rules (traffic from Vapi to your network)
8788

@@ -91,7 +92,7 @@ Allow these if your SIP provider or PBX needs to receive traffic from Vapi:
9192
| --- | --- | --- | --- | --- |
9293
| SIP signalling | `44.229.228.186`, `44.238.177.138` | Your SIP server | `5060` | UDP |
9394
| SIP signalling (TLS) | `44.229.228.186`, `44.238.177.138` | Your SIP server | `5061` | TLS |
94-
| RTP media | `44.229.228.186`, `44.238.177.138` | Your media server | `40000`-`60000` | UDP |
95+
| RTP media | Any (dynamic) | Your media server | `40000`-`60000` | UDP |
9596

9697
### Outbound rules (traffic from your network to Vapi)
9798

@@ -101,23 +102,23 @@ Allow these if your firewall restricts outbound connections:
101102
| --- | --- | --- | --- | --- |
102103
| SIP signalling | Your SIP server | `44.229.228.186`, `44.238.177.138` | `5060` | UDP |
103104
| SIP signalling (TLS) | Your SIP server | `44.229.228.186`, `44.238.177.138` | `5061` | TLS |
104-
| RTP media | Your media server | `44.229.228.186`, `44.238.177.138` | `40000`-`60000` | UDP |
105+
| RTP media | Your media server | Any (dynamic) | `40000`-`60000` | UDP |
105106

106107
<Warning>
107-
Both IP addresses must be allowed in your firewall rules. Vapi may use either address for signalling or media on any given call. Missing one address can cause intermittent call failures.
108+
Both SIP signalling IP addresses must be allowed in your firewall rules. Vapi may use either address for signalling on any given call. Missing one address can cause intermittent call failures. For RTP media, since Vapi uses dynamic IPs, configure your firewall to allow the full port range (`40000`-`60000` UDP) without restricting by source or destination IP.
108109
</Warning>
109110

110111
## FAQ
111112

112113
<AccordionGroup>
113114
<Accordion title="Can I use DNS instead of IP addresses in my firewall rules?">
114-
The hostname `sip.vapi.ai` resolves to both Vapi SIP IP addresses. However, if your firewall supports only IP-based rules, add both `44.229.228.186` and `44.238.177.138` explicitly. DNS-based firewall rules depend on TTL and caching behavior, which can lead to gaps during DNS updates.
115+
The hostname `sip.vapi.ai` resolves to both Vapi SIP signalling IP addresses. However, if your firewall supports only IP-based rules, add both `44.229.228.186` and `44.238.177.138` explicitly for signalling. DNS-based firewall rules depend on TTL and caching behavior, which can lead to gaps during DNS updates. Note that this DNS hostname applies to SIP signalling only; RTP media uses dynamic IPs that cannot be resolved via DNS.
115116
</Accordion>
116117
<Accordion title="Do I need to open the full 40000-60000 port range?">
117118
Yes. Vapi's RTP stack dynamically allocates ports within this range for each call. You cannot predict which specific port a given call will use, so the entire range must be open for reliable media flow.
118119
</Accordion>
119120
<Accordion title="Are the signalling and media IPs the same?">
120-
Yes. Vapi's SIP signalling and RTP media are served from the same infrastructure and use the same pair of public IP addresses (`44.229.228.186` and `44.238.177.138`).
121+
No. Vapi's SIP signalling uses the static IP addresses `44.229.228.186` and `44.238.177.138`, but RTP media does not use static IP addresses. Media source IPs are dynamically assigned and may vary between calls.
121122
</Accordion>
122123
<Accordion title="Does Vapi support SRTP (encrypted media)?">
123124
Vapi supports TLS for SIP signalling on port 5061. For encrypted media (SRTP), configure your SIP trunk gateway with the `tls/srtp` outbound protocol option. See the [gateway configuration reference](/advanced/sip/troubleshoot-sip-trunk-credential-errors#gateway-configuration-reference) for details.

0 commit comments

Comments
 (0)