Professional Documents
Culture Documents
Contents
1. SIP and its network elements 2. SIP messages 3. Some SIP features
User Agent (UA) is the SIP end point: usually an application on the PC, on the mobile phones, or whatever device capable of a IP address. Proxy servers perform routing of the SIP messages from UA to UA. Registrar servers store the location data of UAs: mapping a SIP URI with a IP/port. Redirect sever: an alternative to the proxy server, less common used
5
Location DB
Registrar REGISTER
Proxy INVITE
Proxy INVITE
Registrar REGISTER
sip:userB@domain2.com
INVITE
User A
INVITE
User B
In Redirect mode, the signalling path is also peer-topeer Less workload for the core network
7
2. SIP Messages
INVITE sip:UserB@there.com SIP/2.0
Via: SIP/2.0/UDP 192.168.99.1:5060 From: BigGuy <sip:UserA@here.com> To: LittleGuy <sip:UserB@there.com> Call-ID: 12345600@here.com CSeq: 1 INVITE Subject: Happy Christmas Contact: BigGuy <sip:UserA@192.168.99.1> Content-Type: application/sdp Content-Length: 147 o=UserA 2890844526 2890844526 IN IP4 here.com s=Session SDP c=IN IP4 100.101.102.103 t=0 0 m=audio 49172 RTP/AVP 0 a=rtpmap:0 PCMU/8000
SIP messages are humanreadable Part 1: defining message type Part 2: Message header Part 3: Message body
8
Types of message
SIP Requests:
Register: UA sends Register message to Registrar with IP address and port information Invite: Invite a callee to a session ACK: Acknowledge message Bye: Tear down a session Cancel: Cancel a not fully-established session Other Request Methods can be found in RFC 3261
9
Types of message
SIP Responses: Containing the reply code in the first line
1xx: Information 2xx: Success 3xx: Redirection 4xx: Sender Client error 5xx: Server error 6xx: Global failure
10
Types of message
UAs usually arrange messages into transactions and dialogs Transaction: A request and relevant responses Dialog: Set of transactions belonging to a session
11
12
Types of Proxy
Stateless Proxy: Routing only Stateful Proxy: Store the call parties states during the session
Transaction Stateful Proxy Dialog Stateful Proxy: a prerequisite for other features such as: call details report, billing,
Back to Back User Agent (BBUA): BBUA is a UA enhanced with additional services that are transparent to the other call parties.
13
Message forking
Proxy can forward a message to multiple destinations
Parallel forking: Simultaneously send invitations to all the destinations Recursive forking: Iterate through the list of destinations and try one at a time
14
Message forking
User B device 1 INVITE Proxy INVITE User B device 2 INVITE INVITE User A User B device 2
15
Instant Messaging
A SIP message with method MESSAGE is used to send IM, with the message contained in the body SIP IM problems:
Session handling SPIM filtering
16
Conference
Proxy
User B
User A
User C
Signalling Media
17
Conference
The SIP core network only provide signalling path Conference media stream is managed by the end-devices Alternative: Conferencing server for media relay
18
19
References
http://www.iptel.org/sip/intro http://www.tech-invite.com/
20
Q&A
21
Thank you!
22