VOS3000 media proxy
Media proxy decides whether a call's voice passes through your VOS3000 server. It is the first setting to check when audio is missing.
Updated · By the VOS3000 Web team
Quick answer: Media proxy makes the voice (RTP) of a call flow through the VOS3000 server instead of directly between the two sides. Each gateway can be set to Auto, On, Off or Must on; Auto, the default, lets the softswitch decide, mainly turning it on for devices behind NAT. It fixes most NAT audio problems but uses server bandwidth.
- Setting
- Gateway Additional settings, Media proxy
- Default
- Auto (SS_MEDIA_PROXY_MODE)
- RTP ports
- 10000 to 39999 by default
- Cost
- Both call legs pass through your server
What media proxy does
Every VOS3000 call has two parts: signalling (SIP or H.323), which always passes through VOS3000, and media (the RTP voice packets). With media proxy off, the voice goes directly between the customer and the carrier. With media proxy on, VOS3000 receives the voice from each side and forwards it to the other.
Forwarding through the server fixes most problems caused by NAT, where one side cannot reach the address the other side announces. It also lets VOS3000 see the audio, which some features need, for example RTP interrupt detection and gateway switching on RTP start.
The gateway setting
Each mapping and routing gateway has Media proxy in its Additional settings. VOS3000 Web shows the same setting in the gateway's Additional Settings.
- Auto: the softswitch decides for each call (recommended in the manual).
- On: media proxy is used.
- Off: media proxy is not used.
- Must on: media proxy is always used, even when the other side of the call is set to Off.
The system-wide default is the softswitch parameter SS_MEDIA_PROXY_MODE (Auto), under Operation management, Softswitch management, Additional settings, System parameter.
How Auto decides
For each call, VOS3000 checks these rules in order and stops at the first that applies:
- If the caller or callee side is Must on, media proxy is used.
- If either side is Off, it is not used.
- If either side is On, it is used.
- If the callee side uses a local ring tone, it is used.
- If a registered phone or gateway uses encryption, it is used.
- If SS_MEDIA_PROXY_BETWEEN_NET is on and the two sides are on different networks, it is used.
- If SS_MEDIA_PROXY_BEHIND_NAT is on: it is used when both sides are behind the same NAT and SS_MEDIA_PROXY_SAME_NAT is on, or when the two are behind different NATs and one of them is on a private network.
- Otherwise, it is not used.
Ports and firewall
Forwarded audio uses the UDP port range in SS_MEDIA_PROXY_PORT_RANGE, 10000 to 39999 by default. If your server firewall only lets SIP through, calls connect with no audio. Allow the RTP range, not just the SIP port.
What it costs
With media proxy on, your server sends and receives the audio for both legs of every call. As a rough guide, G.711 needs about 87 kbps in each direction per leg and G.729 about 31 kbps, including packet overhead. Multiply by the number of proxied calls to size your bandwidth; see codecs and DTMF.
When to change it
- One-way or no audio with a customer behind NAT: set that gateway to On. See one-way audio.
- Carriers that only accept audio from your IP: set the routing gateway to On, so all audio comes from your server.
- Large wholesale traffic between public servers: Off saves bandwidth, if both sides can reach each other.
Questions about this topic
Should I turn media proxy on in VOS3000?
Leave it on Auto for most gateways. Turn it On for a customer or carrier with one-way or no audio behind NAT, and Off only when both sides can reach each other directly and you want to save bandwidth.
Does media proxy use more bandwidth?
Yes. Both call legs pass through your server, so it sends and receives the audio of each call twice.
Which ports does VOS3000 media proxy use?
UDP 10000 to 39999 by default, set in SS_MEDIA_PROXY_PORT_RANGE. Your firewall must let them through.
Try every step in the live demo
Each screen in this guide is in the VOS3000 Web demo, with made-up data. Sign in with demo / demo.
Keep reading
One-way or no audio
Why audio fails on some calls and how to fix it with media proxy and codecs.
Codecs and DTMF
Auto or specified codecs, transcoding, G729 modes, RFC2833 and SIP INFO.
Desktop, SIP and CDR firewalls
Allow trusted IPs, change the SIP port and unban addresses.
SIP timeouts and call limits
INVITE and ringing timeouts, session timer, the 2-hour limit, no-media hang up and max call duration.