|
Written by Hemanshu Patel
|
|
Thursday, 08 November 2007 |
|
Page 7 of 17 3. SIP Session Establishment
This section details session establishment between two SIP User Agents (UAs): Alice and Bob. Alice (sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
) and Bob (sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
) are assumed to be SIP phones or SIP-enabled devices. The successful calls show the initial signaling, the exchange of media information in the form of SDP payloads, the establishment of the media session, then finally the termination of the call.
HTTP Digest authentication is used by Proxy Servers to authenticate the caller Alice. It is assumed that Bob has registered with Proxy Server Proxy 2 as per Section 2 to be able to receive the calls via the Proxy.
3.1. Successful Session Establishment
Alice Bob | | | INVITE F1 | |----------------------->| | 180 Ringing F2 | |<-----------------------| | | | 200 OK F3 | |<-----------------------| | ACK F4 | |----------------------->| | Both Way RTP Media | |<======================>| | | | BYE F5 | |<-----------------------| | 200 OK F6 | |----------------------->| | |
In this scenario, Alice completes a call to Bob directly.
Message Details
F1 INVITE Alice -> Bob
INVITE sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
SIP/2.0 Via: SIP/2.0/TCP client.atlanta.example.com:5060;branch=z9hG4bK74bf9 Max-Forwards: 70 From: Alice <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=9fxced76sl To: Bob <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>
Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 1 INVITE Contact: <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
;transport=tcp> Content-Type: application/sdp Content-Length: 151
v=0 o=alice 2890844526 2890844526 IN IP4 client.atlanta.example.com s=- c=IN IP4 192.0.2.101 t=0 0 m=audio 49172 RTP/AVP 0 a=rtpmap:0 PCMU/8000
F2 180 Ringing Bob -> Alice
SIP/2.0 180 Ringing Via: SIP/2.0/TCP client.atlanta.example.com:5060;branch=z9hG4bK74bf9 ;received=192.0.2.101 From: Alice <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=9fxced76sl To: Bob <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=8321234356 Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 1 INVITE Contact: <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
;transport=tcp> Content-Length: 0
F3 200 OK Bob -> Alice
SIP/2.0 200 OK Via: SIP/2.0/TCP client.atlanta.example.com:5060;branch=z9hG4bK74bf9 ;received=192.0.2.101 From: Alice <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=9fxced76sl To: Bob <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=8321234356 Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 1 INVITE Contact: <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
;transport=tcp> Content-Type: application/sdp Content-Length: 147
v=0 o=bob 2890844527 2890844527 IN IP4 client.biloxi.example.com s=- c=IN IP4 192.0.2.201 t=0 0 m=audio 3456 RTP/AVP 0 a=rtpmap:0 PCMU/8000
F4 ACK Alice -> Bob
ACK sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
SIP/2.0 Via: SIP/2.0/TCP client.atlanta.example.com:5060;branch=z9hG4bK74bd5 Max-Forwards: 70 From: Alice <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=9fxced76sl To: Bob <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=8321234356 Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 1 ACK Content-Length: 0
/* RTP streams are established between Alice and Bob */
/* Bob Hangs Up with Alice. Note that the CSeq is NOT 2, since Alice and Bob maintain their own independent CSeq counts. (The INVITE was request 1 generated by Alice, and the BYE is request 1 generated by Bob) */
F5 BYE Bob -> Alice
BYE sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
SIP/2.0 Via: SIP/2.0/TCP client.biloxi.example.com:5060;branch=z9hG4bKnashds7 Max-Forwards: 70 From: Bob <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=8321234356 To: Alice <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=9fxced76sl Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 1 BYE Content-Length: 0
F6 200 OK Alice -> Bob
SIP/2.0 200 OK Via: SIP/2.0/TCP client.biloxi.example.com:5060;branch=z9hG4bKnashds7 ;received=192.0.2.201 From: Bob <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=8321234356 To: Alice <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=9fxced76sl Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 1 BYE Content-Length: 0
|