Documente Academic
Documente Profesional
Documente Cultură
Version 3.00
ZTE CORPORATION
ZTE Plaza, Keji Road South,
Hi-Tech Industrial Park,
Nanshan District, Shenzhen,
P. R. China
518057
Tel: (86) 755 26771900 800-9830-9830
Fax: (86) 755 26772236
URL: http://support.zte.com.cn
E-mail: doc@zte.com.cn
Contents
Chapter 1.................................................................1
Overview..................................................................1
Chapter 2.................................................................3
SIP Functions...........................................................3
Chapter 3.................................................................5
Components of SIP....................................................5
User agent client...................................................................5
User agent server .................................................................5
Chapter 4.................................................................7
Commands of SIP......................................................7
Chapter 5.................................................................9
Chapter 6................................................................15
Chapter 7................................................................17
Chapter 8................................................................19
Chapter 9................................................................27
Registration in SIP..................................................29
Chapter 11..............................................................31
Chapter 12..............................................................33
Chapter 13..............................................................37
Chapter 14..............................................................39
Chapter 15..............................................................41
SDP Introduction.....................................................41
Session Description Parameters.............................................42
Example Session (SDP)........................................................43
Chapter 16..............................................................45
SIP/H.323 comparison............................................45
Comparing the Basic Call Setup.............................................47
Comparison Conclusion........................................................49
Chapter 1
Overview
SIP Functions
Components of SIP
Commands of SIP
MESSAGE FUNCTION
Acknowledgement is used to
ACK
facilitate reliable message
capabilities.
certain call
Chapter 5
To:
It contains a display name "user2" and a SIP or SIPS URI
<user2@server2.com>
The To header field first and foremost specifies the desired
"logical" recipient of the request, or the address-of-record of the
user or resource that is the target of this request. This may or
may not be the ultimate recipient of the request. The To header
field MAY contain a SIP or SIPS URI, but it may also make use of
other URI schemes (the tel URL (RFC 2806 [9]), for example)
when appropriate. All SIP implementations MUST support the
SIP URI scheme. Any implementation that supports TLS MUST
support the SIPS URI scheme. The To header field allows for a
display name.
A UAC may learn how to populate the To header field for a
particular request in a number of ways. Usually the user will
suggest the To header field through a human interface, perhaps
inputting the URI manually or selecting it from some sort of
address book. Frequently, the user will not enter a complete
URI, but rather a string of digits or letters (for example, "bob").
It is at the discretion of the UA to choose how to interpret this
input. Using the string to form the user part of a SIP URI implies
that the UA wishes the name to be resolved in the domain to the
right-hand side (RHS) of the at-sign in the SIP URI (for instance,
sip:bob@example.com). Using the string to form the user part of
a SIPS URI implies that the UA wishes to communicate securely,
and that the name is to be resolved in the domain to the RHS of
the at-sign. The RHS will frequently be the home domain of the
requestor, which allows for the home domain to process the
outgoing request. This is useful for features like "speed dial" that
require interpretation of the user part in the home domain. The
tel URL may be used when the UA does not wish to specify the
domain that should interpret a telephone number that has been
From:
It also contains a display name "user1" and a SIP or SIPS URI
<user1@server1.com>. It also contains a tag which is a pseudo-
random sequence inserted by the SIP application. It works as an
identifier of the caller in the dialog. The From header field
indicates the logical identity of the initiator of the request,
possibly the user's address-of-record. Like the To header field, it
contains a URI and optionally a display name. It is used by SIP
elements to determine which processing rules to apply to a
request (for example, automatic call rejection).
As such, it is very important that the From URI not contain IP
addresses or the FQDN of the host on which the UA is running,
since these are not logical names.
The From header field allows for a display name. A UAC SHOULD
use the display name "Anonymous", along with a syntactically
correct, but otherwise meaningless URI (like
sip:thisis@anonymous.invalid), if the identity of the client is to
remain hidden.
Usually, the value that populates the From header field in
requests generated by a particular UA is preprovisioned by the
user or by the administrators of the user's local domain. If a
particular UA is used by multiple users, it might have switchable
profiles that include a URI corresponding to the identity of the
profiled user. Recipients of requests can authenticate the
originator of a request in order to ascertain that they are who
their From header field claims they are.
Call-ID:
It is a globally unique identifier of the call generated as the
combination of a pseudo-random string and the softphone's IP
address.
The Call-ID is unique for a call. A call may contain several
dialogs. Each dialog is uniquely identified by a combination of
From, To and Call-ID.
The Call-ID header field acts as a unique identifier to group
together a series of messages. It MUST be the same for all
requests and responses sent by either UA in a dialog. It SHOULD
be the same in each registration from a UA.
Contact:
It contains a SIP or SIPS URI that is a direct route to user1. It
contains a username and a fully qualified domain name(FQDN).
It may also have an IP address.
Via field is used to send the response to the request. Contact
field is used to send future requests. That is why the 200 OK
response from user2 goes to user1 through proxies. But when
user2 generates a BYE request (a new request and not a
response to INVITE), it goes directly to user1 bypassing the
proxies.
Content-Type:
It contains a description of the message body (not shown).
Content-Length:
Response Message
Format of SIP
Status Line
The first line in a response is called Status line.
SIP- Status Line
Version SP Status-Code SP Reason-Phrase CRLF
[SP = single-space & CRLF=Carriage Return + Line Feed (i.e.
the character inserted when "Enter" key is pressed on the
computer keyboard)]
Here SIP version is 2, Status-Code is 200 and Reason Phrase is
OK.
The header fields that follow the status line are similar to those
in a request. I will just mention the differences
Via:
There are more than one via field. This is because each element
through which the INVITE request has passed has added its
identity in the Via field. Three Via fields are added by softphone
of user1, server1 the first proxy and server2 the second proxy.
The response retraces the path of INVITE using the Via fields.
F I G U R E 3 C AL L S C E N AR I O AN A LYS I S
At this stage, the connection is made to the far end and ring-
back-tone can be heard.
FIGURE 6 OK RESPONSE
SIP terminates and goes out of the picture and the IP packets
are exchanged directly between the two ends during the session
until one of the parties sends BYE message.
Here, the BYE message is sent from the SIP proxy server
indicating that the far end wants to terminate the session.
Registration in SIP
F I G U R E 1 3 R E G I S T R AT I O N I N S I P
One of the key limitations of SIP is that it does not provide any
method of directly interworking with the PSTN. The reason for
this is that the IETF did not create SIP with the intention of full
backward compatibility with legacy PSTN signaling mechanisms.
The lack of full SIP/PSTN interworking has many technical
causes, primary among those being that the call signaling
protocol used in the legacy PSTN (i.e. ISUP) is based on a
fundamentally different call model than SIP. Under many
circumstances, the ISUP call model requires a particular
sequence of messaging for which no corresponding SIP message
or messages have been defined. There are also cases in which
the rich feature set available on the PSTN and facilitated by ISUP
cannot be easily developed using SIP due to lack of
corresponding SIP functionality. There are other cases in which
regulatory requirements are most easily and immediately
fulfilled by retaining an ability to delivels1r ISUP services as
opposed to trying to meet complex regulatory mandates with a
new SIP implementation.
The necessity of protocol interworking between networks based
on SIP and ISUP was recognized by both the ITU and IETF who
independently developed alternative methods for SIP with ISUP
encapsulation referred to as SIP-I and SIP-T, respectively.
After the SS1 receives the ISUP message coming from LS1, it
will encapsulate and translate the package into SIP form. Firstly,
it will finish the header according to the caller/callee information
in ISUP, such as the From/TO domain and Request-URI domain.
IF the called party LS2 goes off hook, ANM is generated which is
translated across as 200 OK and then again as ANM.
ACK message is returned by SS1 and an ANM message is sent to
LS1 indicating that LS2 is off hook for the media session.
As for termination of the session, REL message is sent which is
mapped to as BYE. Here, in this case, LS1 initiates the
termination sequence by sending REL message to SS1which is
translated across to SS2 as BYE and again BYE message is
mapped to as REL to inform LS2 that LS1 wants to terminate the
session. LS2 responds with RLC indicating that it had
acknowledged it. This is translated across as 200 OK and then
again as RLC.
ITU-T Q.1912.5 will also use the RTP/AVP transport and framing
as specified by RFC 3550, 3551 and various codec specific RFCs.
SIP-I explicitly references the SDP offer/answer rules as
specified by IETF RFC 3264 (there is no explicit reference to
these procedures by SIP-T).
SIP-I reuses many IETF standards and drafts and is richer than
SIP-T in contents. SIP-I contains not only the interworking of the
basic call, but also the interworking of supplementary services
such as CLIP and CLIR. Besides interworking of the call
signaling, SIP-I takes other issues into account such as resource
reservation, media information conversion, and interworking
between fixed-line SIP/3GPPSIP and BICC/ISUP. The most
important is that SIP-I inherits advantages (such as clarity,
preciseness and elaboration) of the traditional ITU-T
recommendations and is much better than SIP-T in operability.
SIP-I and SIP-T have very similar approaches for interworking
ISUP networks with SIP networks. In particular, they provide the
means for conveying ISUP-specific parameters through a SIP
network so that calls that originate and terminate on the ISUP
network can transit a SIP network with no loss of information.
SIP-I and SIP-T both define the mapping of messages,
parameters, and error codes between SIP and ISUP. Both of
them are fully interoperable with compliant SIP network
components on the SIP network.
The key differences between SIP-I and SIP-T are:
SIP-I defines a mapping from SIP to BICC (in additional to
ISUP), while SIP-T addresses only the ISUP case.
SIP-T is inherently designed for interoperation with native
SIP terminals, while SIP-I is restricted for use between PSTN
gateways only.
SIP-I and SIP-T also define somewhat different mappings of
information between the protocols, mostly in terms of converting
from SIP error codes to ISUP cause codes.
At present, SIP is a dominant protocol that controls the
communication between softswitch and application server, and
will be the absolutely dominant protocol for communication
between softswitch and terminal in the future. In the context of
SDP Introduction
SIP/H.323 comparison
SIP H.323
ITU
disproportionate
world
command/response extensions
circuit setup
management
'Unified messaging'
Presence management
streaming video)
based devices
SIP H.323
implementations
F I G U R E 1 9 B A S I C C A L L S E T U P U S I N G S I P.
Comparison Conclusion
H.323 describes and enables an object-oriented approach based
on QSIG in accordance with ITU-T recommendation H.323 Annex
M1 11/00 and provides better interworking with already existing
telephony systems (e.g. ISDN).
The programming languages derived from HTTP are more easily
applicable for SIP, SIP is based on HTTP. SIP is the better for
new services implementation. SIP requires less code to
implement than H.323. H.323 was an early leader in the VoIP
market, and continues to be used in a lot of networks, but IETF
standards are more flexible and accessible then ITU protocols
and it could be important for the VoIP device design and its
development. The reality is that most H.323 products on the
market today also support SIP, including SIP/H.323
interworking.