VOS3000 how-to

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:

  1. If the caller or callee side is Must on, media proxy is used.
  2. If either side is Off, it is not used.
  3. If either side is On, it is used.
  4. If the callee side uses a local ring tone, it is used.
  5. If a registered phone or gateway uses encryption, it is used.
  6. If SS_MEDIA_PROXY_BETWEEN_NET is on and the two sides are on different networks, it is used.
  7. 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.
  8. 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.