Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
understanding-SIP.pdf
Скачиваний:
113
Добавлен:
01.03.2016
Размер:
3.99 Mб
Скачать

 

 

Call Flow Examples

363

 

 

Via: SIP/2.0/UDP kings.cambridge.edu.uk:60000;branch=z9hG4bK2 Cancels search

 

 

Max-Forwards: 70

 

 

 

From: J.C. Maxwell <sip:james.maxwell@kings.cambridge.edu.uk>

 

 

To: <sip:faraday@effect.org>;tag=6321

 

 

 

Call-ID: mNjdwWjkBfWrd@7.9.18.12

CSeq not incremented

 

 

CSeq: 55 CANCEL

 

 

 

Method set to CANCEL

M14

SIP/2.0 200 OK

CANCEL acknowledged

 

 

Via: SIP/2.0/UDP kings.cambridge.edu.uk:60000;branch=z9hG4bK2

 

 

;received=7.9.18.12

 

 

 

From: J.C. Maxwell <sip:james.maxwell@kings.cambridge.edu.uk>

 

 

;tag=5

 

 

 

To: <sip:faraday@effect.org>;tag=6321

 

 

 

Call-ID: mNjdwWjkBfWrd@7.9.18.12

 

 

 

CSeq: 55 CANCEL

 

M15

SIP/2.0 487 Request Terminated

Final response to INVITE

 

 

Via: SIP/2.0/UDP kings.cambridge.edu.uk:60000;branch=z9hG4bK2

 

 

;received=7.9.18.12

 

 

 

From: J.C. Maxwell <sip:james.maxwell@kings.cambridge.edu.uk>

 

 

;tag=5

 

 

 

To: <sip:faraday@effect.org>;tag=6321

 

 

 

Call-ID: mNjdwWjkBfWrd@7.9.18.12

 

 

 

CSeq: 55 INVITE

 

M16

ACK SIP/2.0

 

 

 

Via: SIP/2.0/UDP kings.cambridge.edu.uk:60000;branch=z9hG4bK2

 

 

From: J.C. Maxwell <sip:james.maxwell@kings.cambridge.edu.uk>

 

 

;tag=5

 

 

 

To: <sip:faraday@effect.org>;tag=6321

 

 

 

Call-ID: mNjdwWjkBfWrd@7.9.18.12

 

 

 

CSeq: 55 ACK

 

16.6 Call Setup with Two Proxies

This section contains the complete message flow shown in Figure 2.2.

M1 INVITE sip:werner.heisenberg@munich.de SIP/2.0

Via: SIP/2.0/UDP 100.101.102.103:5060;branch=z9hG4bKmp17a Max-Forwards: 70

To: Heisenberg <sip:werner.heisenberg@munich.de> From: E. Schroedinger <sip:schroed5244@aol.com>;tag=42 Call-ID: 4827311-391-32934

CSeq: 1 INVITE

Subject: Where are you exactly? Contact: <sip:schroed5244@pc33.aol.com> Content-Type: application/sdp Content-Length: 159

v=0

o=schroed5244 2890844526 2890844526 IN IP4 100.101.102.103 s=Phone Call

t=0 0

c=IN IP4 100.101.102.103

364

SIP: Understanding the Session Initiation Protocol

 

 

m=audio 49170 RTP/AVP 0

 

 

a=rtpmap:0 PCMU/8000

M2

INVITE sip:werner.heisenberg@200.201.202.203 SIP/2.0

 

 

Via: SIP/2.0/UDP proxy.munich.de:5060;branch=z9hG4bK83842.1

 

 

Via: SIP/2.0/UDP 100.101.102.103:5060;branch=z9hG4bKmp17a

 

 

Max-Forwards: 69

 

 

To: Heisenberg <sip:werner.heisenberg@munich.de>

 

 

From: E. Schroedinger <sip:schroed5244@aol.com>;tag=42

 

 

Call-ID: 4827311-391-32934

 

 

CSeq: 1 INVITE

 

 

Contact: <sip:schroed5244@pc33.aol.com>

 

 

Content-Type: application/sdp

 

 

Content-Length: 159

 

 

v=0

 

 

o=schroed5244 2890844526 2890844526 IN IP4 100.101.102.103

 

 

s=Phone Call

 

 

c=IN IP4 100.101.102.103

 

 

t=0 0

 

 

m=audio 49172 RTP/AVP 0

 

 

a=rtpmap:0 PCMU/8000

M3

SIP/2.0 180 Ringing

 

 

Via: SIP/2.0/UDP proxy.munich.de:5060;branch=z9hG4bK83842.1

 

 

;received=100.101.102.105

 

 

Via: SIP/2.0/UDP 100.101.102.103:5060;branch=z9hG4bKmp17a

 

 

To: Heisenberg <sip:werner.heisenberg@munich.de>;tag=314159

 

 

From: E. Schroedinger <sip:schroed5244@aol.com>;tag=42

 

 

Call-ID: 4827311-391-32934

 

 

CSeq: 1 INVITE

 

 

Contact: <sip:werner.heisenberg@200.201.202.203>

 

 

Content-Length: 0

M4

SIP/2.0 180 Ringing

 

 

Via: SIP/2.0/UDP 100.101.102.103:5060;branch=z9hG4bKmp17a

 

 

To: Heisenberg <sip:werner.heisenberg@munich.de>;tag=314159

 

 

From: E. Schroedinger <sip:schroed5244@aol.com>;tag=42

 

 

Call-ID: 4827311-391-32934

 

 

CSeq: 1 INVITE

 

 

Contact: <sip:werner.heisenberg@200.201.202.203>

 

 

Content-Length: 0

M5

SIP/2.0 200 OK

 

 

Via: SIP/2.0/UDP proxy.munich.de:5060;branch=z9hG4bK83842.1

 

 

;received=100.101.102.105

 

 

Via: SIP/2.0/UDP 100.101.102.103:5060;branch=z9hG4bKmp17a

 

 

To: Heisenberg7 <sip:werner.heisenberg@munich.de>;tag=314159

 

 

From: E. Schroedinger <sip:schroed5244@aol.com>;tag=42

 

 

Call-ID: 4827311-391-32934

 

 

CSeq: 1 INVITE

 

 

Contact: <sip:werner.heisenberg@200.201.202.203>

 

 

Content-Type: application/sdp

 

 

Content-Length: 159

v=0

o=heisenberg 2890844526 2890844526 IN IP4 200.201.202.203 s=Phone Call

c=IN IP4 200.201.202.203

Call Flow Examples

365

t=0 0

m=audio 49172 RTP/AVP 0 a=rtpmap:0 PCMU/8000

M6 SIP/2.0 200 OK

Via: SIP/2.0/UDP 100.101.102.103:5060;branch=z9hG4bKmp17a

To: Heisenberg <sip:werner.heisenberg@munich.de>;tag=314159 From: E. Schroedinger <sip:schroed5244@aol.com>;tag=42 Call-ID: 4827311-391-32934

CSeq: 1 INVITE

Contact: sip:werner.heisenberg@200.201.202.203 Content-Type: application/sdp Content-Length: 159

v=0

o=heisenberg 2890844526 2890844526 IN IP4 200.201.202.203 c=IN IP4 200.201.202.203

t=0 0

m=audio 49170 RTP/AVP 0 a=rtpmap:0 PCMU/8000

M7 ACK sip:werner.heisenberg@200.201.202.203 SIP/2.0

Via: SIP/2.0/UDP 100.101.102.103:5060;branch=z9hG4bKka42 Max-Forwards: 70

To: Heisenberg <sip:werner.heisenberg@munich.de>;tag=314159 From: E. Schroedinger <sip:schroed5244@aol.com>;tag=42 Call-ID: 4827311-391-32934

CSeq: 1 ACK Content-Length: 0

M8 BYE sip:schroed5244@pc33.aol.com SIP/2.0

Via: SIP/2.0/UDP 200.201.202.203:5060;branch=z9hG4bK4332 Max-Forwards: 70

To: E. Schroedinger <sip:schroed5244@aol.com>;tag=42

From: Heisenberg <sip:werner.heisenberg@munich.de>;tag=314159 Call-ID: 4827311-391-32934

CSeq: 2000 BYE Content-Length: 0

M9 SIP/2.0 200 OK

Via: SIP/2.0/UDP 200.201.202.203:5060;branch=z9hG4bK4332 To: E. Schroedinger <sip:schroed5244@aol.com>;tag=42

From: Heisenberg <sip:werner.heisenberg@munich.de>;tag=314159 Call-ID: 4827311-391-32934

CSeq: 2000 BYE Content-Length: 0

16.7 SIP Presence and Instant Message Example

This section contains the call flow details of Figure 2.4.

M1 SUBSCRIBE sip:poisson@probability.org SIP/2.0 Via SIP/2.0/TCP lecturehall21.academy.ru:5060 ;branch=z9hG4bK348471123

Max-Forwards: 70

To: M. Poisson <sip:poisson@probability.org>

366

SIP: Understanding the Session Initiation Protocol

From: P. L. Chebychev <sip:chebychev@academy.ru>;tag=21171 Call-ID: 58dkfj34924lk34452k592520

CSeq: 3412 SUBSCRIBE Allow-Events: presence

Allow: ACK, INVITE, CANCEL, BYE, NOTIFY, SUBSCRIBE, MESSAGE Contact: <sip:pafnuty@lecturehall21.academy.ru;transport=tcp> Event: presence

Content-Length: 0

M2 SIP/2.0 200 OK

Via SIP/2.0/TCP lecturehall21.academy.ru:5060 ;branch=z9hG4bK348471123;received=19.34.3.1

To: M. Poisson <sip:poisson@probability.org>;tag=25140 From: P. L. Chebychev <sip:chebychev@academy.ru>;tag=21171 Call-ID: 58dkfj34924lk34452k592520

CSeq: 3412 SUBSCRIBE Allow-Events: presence

Allow: ACK, INVITE, CANCEL, BYE, NOTIFY, SUBSCRIBE, MESSAGE Contact: <sip:s.possion@dist.probability.org;transport=tcp> Event: presence

Expires: 3600 Content-Length: 0

M3 NOTIFY sip:pafnuty@lecturehall21.academy.ru SIP/2.0 Via SIP/2.0/TCP dist.probablilty.org:5060

;branch=z9hG4bK4321 Max-Forwards: 70

To: P. L. Chebychev <sip:chebychev@academy.ru>;tag=21171 From: M. Poisson <sip:poisson@probability.org>;tag=25140 Call-ID: 58dkfj34924lk34452k592520

CSeq: 1026 NOTIFY

Allow: ACK, INVITE, CANCEL, BYE, NOTIFY, SUBSCRIBE, MESSAGE Allow-Events: dialog

Contact: <sip:s.possion@dist.probability.org;transport=tcp> Subscription-State: active;expires=3600

Event: presence

Content-Type: application/pidf+xml Content-Length: 244

<?xml version=”1.0” encoding=”UTF-8”?> <presence xmlns=”urn:ietf:params:xml:ns:pidf”

entity=”sip:poisson@probability.org”> <tuple id=”452426775”>

<status>

<basic>closed</basic>

</status>

</tuple>

</presence>

M4 SIP/2.0 200 OK

Via SIP/2.0/TCP dist.probablilty.org:5060 ;branch=z9hG4bK4321;received=24.32.1.3

To: P. L. Chebychev <sip:chebychev@academy.ru>;tag=21171 From: M. Poisson <sip:poisson@probability.org>;tag=25140 Call-ID: 58dkfj34924lk34452k592520

CSeq: 1026 NOTIFY

Content-Length: 0

Call Flow Examples

367

M5 NOTIFY sip:pafnuty@lecturehall21.academy.ru SIP/2.0 Via SIP/2.0/TCP dist.probablilty.org:5060 ;branch=z9hG4bK334241

Max-Forwards: 70

To: P. L. Chebychev <sip:chebychev@academy.ru>;tag=21171 From: M. Poisson <sip:poisson@probability.org>;tag=25140 Call-ID: 58dkfj34924lk34452k592520

CSeq: 1027 NOTIFY

Allow: ACK, INVITE, CANCEL, BYE, NOTIFY, SUBSCRIBE, MESSAGE Allow-Events: presence

Contact: <sip:s.possion@dist.probability.org;transport=tcp> Subscription-State: active;expires=1800

Event: presence

Content-Type: application/pidf+xml Content-Length: 325

<?xml version=”1.0” encoding=”UTF-8”?> <presence xmlns=”urn:ietf:params:xml:ns:pidf” entity=”sip:poisson@probability.org”>

<tuple id=”452426775”> <status> <basic>open</basic> </status>

<contact>sip:s.possion@dist.probability.org;transport=tcp

</contact>

</tuple>

</presence>

M6 SIP/2.0 200 OK

Via SIP/2.0/TCP dist.probablilty.org:5060 ;branch=z9hG4bK334241;received=24.32.1.3

To: P. L. Chebychev <sip:chebychev@academy.ru>;tag=21171 From: M. Poisson <sip:poisson@probability.org>;tag=25140 Call-ID: 58dkfj34924lk34452k592520

CSeq: 1027 NOTIFY

Content-Length: 0

M7 MESSAGE sip:s.possion@dist.probability.org SIP/2.0 Via SIP/2.0/TCP lecturehall21.academy.ru:5060 ;branch=z9hG4bK3gtr2

Max-Forwards: 70

To: M. Poisson <sip:s.possion@dist.probability.org>

From: P. L. Chebychev <sip:chebychev@academy.ru>;tag=4542 Call-ID: 9dkei93vjq1ei3

CSeq: 15 MESSAGE

Allow: ACK, INVITE, CANCEL, BYE, NOTIFY, SUBSCRIBE, MESSAGE Content-Type: text/plain

Content-Length: 9

Hi There!

M8 SIP/2.0 200 OK

Via SIP/2.0/TCP lecturehall21.academy.ru:5060 ;branch=z9hG4bK3gtr2;received=19.34.3.1

To: M. Poisson <sip:s.possion@dist.probability.org>;tag=2321 From: P. L. Chebychev <sip:chebychev@academy.ru>;tag=4542 Call-ID: 9dkei93vjq1ei3

CSeq: 15 MESSAGE

Content-Length: 0