Version 5.6
381
November 2008
SIP User's Manual
8. Networking Capabilities
The design of SIP creates a problem for VoIP traffic to pass through NAT. SIP uses IP
addresses and port numbers in its message body and the NAT server can’t modify SIP
messages and therefore, can’t change local to global addresses. Two different streams
traverse through NAT: signaling and media. A device (located behind a NAT) that initiates a
signaling path has problems in receiving incoming signaling responses (they are blocked by
the NAT server). Furthermore, the initiating device must notify the receiving device where to
send the media.
To resolve these issues, the following mechanisms are available:
STUN (refer to ''STUN'' on page
)
First Incoming Packet Mechanism (refer to ''First Incoming Packet Mechanism'' on
page
RTP No-Op packets according to the avt-rtp-noop draft (refer to ''No-Op Packets'' on
page
For information on SNMP NAT traversal, refer to the
Product Reference Manual
.
8.3.1
STUN
Simple Traversal of UDP through NATs (STUN), based on RFC 3489 is a client / server
protocol that solves most of the NAT traversal problems. The STUN server operates in the
public Internet and the STUN clients are embedded in end-devices (located behind NAT).
STUN is used both for the signaling and the media streams. STUN works with many
existing NAT types and does not require any special behavior.
STUN enables the device to discover the presence (and types) of NATs and firewalls
located between it and the public Internet. It provides the device with the capability to
determine the public IP address and port allocated to it by the NAT. This information is later
embedded in outgoing SIP / SDP messages and enables remote SIP user agents to reach
the device. It also discovers the binding lifetime of the NAT (the refresh rate necessary to
keep NAT ‘Pinholes’ open).
On startup, the device sends a STUN Binding Request. The information received in the
STUN Binding Response (IP address:port) is used for SIP signaling. This information is
updated every user-defined period (NATBindingDefaultTimeout).
At the beginning of each call and if STUN is required (i.e., not an internal NAT call), the
media ports of the call are mapped. The call is delayed until the STUN Binding Response
(that includes a global IP:port) for each media (RTP, RTCP and T.38) is received.
To enable STUN, perform the following:
Enable the STUN feature using either the Web interface (refer to ''Configuring the
Application Settings'' on page
) or the
ini
file (set EnableSTUN to 1).
Define the STUN server address using one of the following methods:
•
Define the IP address of the primary and the secondary (optional) STUN servers
using either the Web interface (refer to ''Configuring the Application Settings'' on
page
) or the
ini
file (STUNServerPrimaryIP and STUNServerSecondaryIP). If
the primary STUN server isn’t available, the device attempts to communicate with
the secondary server.
•
Define the domain name of the STUN server using the
ini
file parameter
StunServerDomainName. The STUN client retrieves all STUN servers with an
SRV query to resolve this domain name to an IP address and port, sort the server
list, and use the servers according to the sorted list.
Use the
ini
file parameter NATBindingDefaultTimeout to define the default NAT binding
lifetime in seconds. STUN is used to refresh the binding information after this time
expires.
Summary of Contents for Mediant 2000
Page 1: ...Document LTRT 68808 November 2008 User s Manual Version 5 6 ...
Page 2: ......
Page 18: ...SIP User s Manual 18 Document LTRT 68808 Mediant 2000 Reader s Notes ...
Page 254: ...SIP User s Manual 254 Document LTRT 68808 Mediant 2000 Reader s Notes ...
Page 334: ...SIP User s Manual 334 Document LTRT 68808 Mediant 2000 Reader s Notes ...
Page 342: ...SIP User s Manual 342 Document LTRT 68808 Mediant 2000 Reader s Notes ...
Page 408: ...SIP User s Manual 408 Document LTRT 68808 Mediant 2000 Reader s Notes ...
Page 414: ...SIP User s Manual 414 Document LTRT 68808 Mediant 2000 Reader s Notes ...
Page 418: ...User s Manual Version 5 6 www audiocodes com ...