Search
Enterprise

Exchange Server 2010 : SIP Protocol

Published 2 min readBy Programming4us Editorial Team
Session Initiation Protocol (SIP) is an Application-layer signaling protocol for creating, modifying, and terminating sessions with one or more participants.

Given the importance of SIP in the Exchange Server 2010 unified messaging system, it is important to understand the protocol in some detail. This assists in troubleshooting integration problems between the Unified Messaging server and the IP/VoIP gateway, which is a frequent source of problems.

SIP Terminology

SIP uses specific terminology to define the elements and devices in a SIP call. Table 1 lists the various SIP terms and definitions.

Table 1. SIP Terminology

TermDescription
MethodsSIP commands and messages.
Result codesResponses to SIP methods indicating success, failure, or other information.
User AgentEndpoint devices that can issue or respond to SIP protocol methods (such as the UM server or IP gateway).
User Agent ClientDevices such as phones or PDAs.
ServerAn application that can accept or respond to SIP methods (for example a UM server).
GatewayA gateway that can convert SIP methods and result codes to another protocol (for example an IP gateway).
Proxy serverA server that can make requests on behalf of other clients.

SIP Methods

SIP uses a number of commands or methods within the protocol. Table 2 lists the methods that SIP uses.

Table 2. SIP Methods

MethodDescription
REGISTERRegisters a user with a registrar.
INVITESession setup request or media negotiation. Used also to hold and retrieve calls.
CANCELUsed to cancel an in-progress transaction.
ACKAcknowledgement for an INVITE transaction.
BYETerminates a session.
OPTIONSUsed for the remote device status and capabilities.
INFOUsed for mid-call signaling information exchange.
SUBSCRIBERequest notification of call events.
NOTIFYEvent notification after a subscription.
REFERCall transfer request.

This table can be useful when doing a protocol trace of a SIP session to determine what the session is doing.

SIP Response Codes

SIP uses a number of response codes, both informational and error related. Table 3 lists the response codes that SIP uses.

Table 3. SIP Response Codes

Response CodeDescription
100Trying
180Ringing
181Call is being forwarded
182Call is being queued
183Session progress
200OK
302Moved temporarily, forward call to a given contact
305Use proxy: repeat same call setup using a given proxy
400Bad Request
401Unauthorized Request
404Not Found
408Request Timeout
486Busy
5xxServer Failure
6xxGlobal Failure

Basic Call Example

The SIP protocol is used to set up calls between and then hands the communication over to the RTP protocol. A basic call sequence for a SIP call setup and teardown in unified messaging looks like the example in Table 4.

Table 4. Basic SIP Call Example

IP GatewayDirectionUM Server
INVITE——> 
 <——180 Ringing
 <——200 OK
ACK——> 
RTP<——>RTP
 <——BYE
200 OK——> 

Notice that after the IP Gateway sends a SIP ACK method back to the Unified Messaging server, the call is handed off to the RTP protocol. After the call is complete, the Unified Messaging server sends a SIP BYE method to terminate the communication.