|
Written by Hemanshu Patel
|
|
Thursday, 08 November 2007 |
|
Page 12 of 17 3.6. Session via Redirect and Proxy Servers with SDP in ACK
Alice Redirect Server Proxy 3 Bob | | | | | INVITE F1 | | | |--------------->| | | | 302 F2 | | | |<---------------| | | | ACK F3 | | | |--------------->| | | | INVITE F4 | | |-------------------------------->| INVITE F5 | | 100 F6 |--------------->| |<--------------------------------| 180 F7 | | 180 F8 |<---------------| |<--------------------------------| | | | 200 F9 | | 200 F10 |<---------------| |<--------------------------------| | | ACK F11 | | |-------------------------------->| ACK F12 | | |--------------->| | Both Way RTP Media | |<================================================>| | | BYE F13 | | BYE F14 |<---------------| |<--------------------------------| | | 200 F15 | | |-------------------------------->| 200 F16 | | |--------------->| | | |
In this scenario, Alice places a call to Bob using first a Redirect server then a Proxy Server. The INVITE message is first sent to the Redirect Server. The Server returns a 302 Moved Temporarily response (F2) containing a Contact header with Bob's current SIP address. Alice then generates a new INVITE and sends to Bob via the Proxy Server and the call proceeds normally. In this example, no SDP is present in the INVITE, so the SDP is carried in the ACK message.
The call is terminated when Bob sends a BYE message.
Message Details
F1 INVITE Alice -> Redirect Server
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/UDP client.atlanta.example.com:5060;branch=z9hG4bKbf9f44 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
> Content-Length: 0
F2 302 Moved Temporarily Redirect Proxy -> Alice
SIP/2.0 302 Moved Temporarily Via: SIP/2.0/UDP client.atlanta.example.com:5060;branch=z9hG4bKbf9f44 ;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=53fHlqlQ2 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 ACK Alice -> Redirect Server
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/UDP client.atlanta.example.com:5060;branch=z9hG4bKbf9f44 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=53fHlqlQ2 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
F4 INVITE Alice -> Proxy 3
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: 2 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
F5 INVITE Proxy 3 -> 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 ss3.chicago.example.com:5060;branch=z9hG4bK721e.1 Via: SIP/2.0/TCP client.atlanta.example.com:5060;branch=z9hG4bK74bf9 ;received=192.0.2.101 Max-Forwards: 69 Record-Route: <sip:ss3.chicago.example.com;lr> 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: 2 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
F6 100 Trying Proxy 3 -> Alice
SIP/2.0 100 Trying 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
> Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 INVITE Content-Length: 0
F7 180 Ringing Bob -> Proxy 3
SIP/2.0 180 Ringing Via: SIP/2.0/TCP ss3.chicago.example.com:5060;branch=z9hG4bK721e.1 ;received=192.0.2.233 Via: SIP/2.0/TCP client.atlanta.example.com:5060;branch=z9hG4bK74bf9 ;received=192.0.2.101 Record-Route: <sip:ss3.chicago.example.com;lr> 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=314159 Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 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
F8 180 Ringing Proxy 3 -> Alice
SIP/2.0 180 Ringing Via: SIP/2.0/TCP client.atlanta.example.com:5060;branch=z9hG4bK74bf9 ;received=192.0.2.101 Record-Route: <sip:ss3.chicago.example.com;lr> 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=314159 Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 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
F9 200 OK Bob -> Proxy 3
SIP/2.0 200 OK Via: SIP/2.0/TCP ss3.chicago.example.com:5060;branch=z9hG4bK721e.1 ;received=192.0.2.233 Via: SIP/2.0/TCP client.atlanta.example.com:5060;branch=z9hG4bK74bf9 ;received=192.0.2.101 Record-Route: <sip:ss3.chicago.example.com;lr> 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=314159 Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 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: 148
v=0 o=bob 2890844527 2890844527 IN IP4 client.chicago.example.com s=- c=IN IP4 192.0.2.100 t=0 0 m=audio 3456 RTP/AVP 0 a=rtpmap:0 PCMU/8000
F10 200 OK Proxy -> Alice
SIP/2.0 200 OK Via: SIP/2.0/TCP client.atlanta.example.com:5060;branch=z9hG4bK74bf9 ;received=192.0.2.101 Record-Route: <sip:ss3.chicago.example.com;lr> 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=314159 Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 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: 148
v=0 o=bob 2890844527 2890844527 IN IP4 client.chicago.example.com s=- c=IN IP4 192.0.2.100 t=0 0 m=audio 3456 RTP/AVP 0 a=rtpmap:0 PCMU/8000
/* ACK contains SDP of Alice since none present in INVITE */
F11 ACK Alice -> Proxy 3
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=z9hG4bK74bq9 Max-Forwards: 70 Route: <sip:ss3.chicago.example.com;lr> 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=314159 Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 ACK 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
F12 ACK Proxy 3 -> 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 ss3.chicago.example.com:5060;branch=z9hG4bK721e.1 Via: SIP/2.0/TCP client.atlanta.example.com:5060;branch=z9hG4bK74bq9 ;received=192.0.2.101 Max-Forwards: 69 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=314159 Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 ACK 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
/* RTP streams are established between Alice and Bob */
/* Bob Hangs Up with Alice. */
F13 BYE Bob -> Proxy 3
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.chicago.example.com:5060;branch=z9hG4bKfgaw2 Max-Forwards: 70 Route: <sip:ss3.chicago.example.com;lr> From: Bob <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=314159 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
F14 BYE Proxy 3 -> 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 ss3.chicago.example.com:5060;branch=z9hG4bK721e.1 ;received=192.0.2.100 Via: SIP/2.0/TCP client.chicago.example.com:5060;branch=z9hG4bKfgaw2 Max-Forwards: 69 From: Bob <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=314159 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
F15 200 OK Alice -> Proxy 3
SIP/2.0 200 OK Via: SIP/2.0/TCP ss3.chicago.example.com:5060;branch=z9hG4bK721e.1 ;received=192.0.2.233 Via: SIP/2.0/TCP client.chicago.example.com:5060;branch=z9hG4bKfgaw2 ;received=192.0.2.100 From: Bob <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=314159 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
F16 200 OK Proxy 3 -> Bob
SIP/2.0 200 OK Via: SIP/2.0/TCP client.chicago.example.com:5060;branch=z9hG4bKfgaw2 ;received=192.0.2.100 From: Bob <sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=314159 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
|
|
| |
|
|