Академический Документы
Профессиональный Документы
Культура Документы
ISSUE 2.0
Objective
Functions of SIP protocol SIP commands Meanings and usage of the parameters in SIP commands
2
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
References
Product Manual Technical Manual Signaling and
3
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
4
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
Overview
5
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
Concept of SIP
The Session Initiation Protocol (SIP) is an application-layer control protocol used to establish, modify and terminate multimedia sessions or calls. These multimedia sessions include multimedia conferences, remote education, Internet telephony and similar applications.
SIP can be used to initiate sessions as well as inviting members to sessions that have been advertised and
SIP transparently supports name mapping and redirection services, allowing the implementation of ISDN, IN, and subscriber mobile services.
6
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
SIP is a light-weight signaling protocol, which can be used in conjunction with other call setup and signaling protocols.
SIP can invite users to sessions with and without resource reservation. SIP does not reserve resources itself, but can convey to the invited system the information necessary to do this.
7
for communication.
User availability: determination of the willingness of the called party to engage in communications.
Call setup: "ringing", establishment of call parameters at both called and calling party.
Terms
Location Service
Registrar
A registrar is a server that accepts REGISTER requests. A registrar is typically co-located with a proxy or redirect server and MAY offer location services.
9
Terms
A user agent client is a client application that initiates the SIP request.
User Agent
An application which contains both a user agent client and user agent server.
10
Protocol Stack
H.263 etc. RTP
H.323
SIP
RTSP
RSVP
RTCP
TCP
UDP
IP
PPP Sonet
AAL3/4
PPP V.34
11
SoftX3000
IP
IP
IP
IP
IP Core
SoftPhone SoftPhone
12
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
13
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
Request messages:
sent by the client to the server including : INVITE, ACK, BYE, CANCEL, REGISTER,OPTION, etc.
Response messages:
Used to display the responses of the server to the requests of clients including 1xx, 2xx, 3xx, 4xx, 5xx and 6xx and ACK.
14
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
Request Messages
Message INVITE ACK Function To initiate a session request The response message to the INVITE message
BYE
CANCEL REGISTER OPTIONS INFO
MESSAGE
Short message
SUBSCRIBE
NOTIFY
Confidential Information of Huawei. No Spreading without Permission.
To subscribe an event
To send event notice
15
Security Level: Internal
Response Messages
Message 1XX 2XX 3XX 4XX 5XX 6XX Function Temporary response Success Redirection Client error Server error Global failure
16
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
Protocol version
Message Header
Parameter line
Call-ID:01E04633512400000@127.0.0.1
Via:SIP/2.0/UDP 127.0.0.1:5061 From:<sip:010203@127.0.0.1:5061;User=phone>;tag=29005
358336B534F610A000
To:<sip:0109@127.0.0.1:5060;User=phone> Contact: sip:010203@127.0.0.1:5061 CSeq:1 INVITE
18
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
Max-Forwards:70
Content-Type: application/SDP
Content-Length:168 v=0 o=UserA 2890844526 2890844526 IN IP4 here.com s=Session SDP c=IN IP4 192.0.0.1 t=0 0
19
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000 a=sendonly
20
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
Response Format
SIP Protocol version Call-id: value via: value From:value To: value Contact:value Response message header
Message header
Cseq: value
parameter Content-Length: value Max-Forward: value Content-Type: value White Space SDP
21
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
CSeq:1 INVITE
From:<sip:010203@127.0.0.1:5061;User=phone>;tag=29005 358336B534F610A000
To:<sip:0109@127.0.0.1:5060;User=phone>;tag=5358336B5
34F2900CD1B0000 Contact:<sip:0109@127.0.0.1:55061>
22
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
s=Sip Call
c=IN IP4 110.111.112.113 t=0 0
24
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
Registration Flow
SIP Phone Register 401 Unauthorized SoftX3000
Register 200 OK
25
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
1 2
INVITE
100 Trying
6 8
5 7
26
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
200 OK 13
14 BYE 200 OK
27
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
28
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
IAM
ACM
200 OK
ACK Conversation
REL 6
BYE
REL
RLC 7 RLC
29
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal
200 OK
Summary
SIP is used to establish, modify and terminate a multimedia conference, such as conference call over Internet. SIP can be
SIP request messages: SIP messages sent by a client to the server on the basis of designated operation for activation, which include such messages as INVITE, PRACK, BYE, CANCEL, UPDATE, etc.
The functions of each command in SIP call process should be mastered as the key points. Level: Internal Security
30
31
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal