• No results found

Session Setup

In document SIP: Session Initiation Protocol (Page 150-155)

22 Usage of HTTP Authentication

24.2 Session Setup

5429

This example contains the full details of the example session setup in Section 4. The message flow is shown

5430

in Figure 1. Note that these flows show the minimum required set of header fields - some other header fields

5431

such asAllowandSupportedwould normally be present.

5432

5433

F1 INVITE Alice -> atlanta.com proxy

5434 5435

INVITE sip:[email protected] SIP/2.0

5436

Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKnashds8

5437

Max-Forwards: 70

5438

To: Bob <sip:[email protected]>

5439

From: Alice <sip:[email protected]>;tag=1928301774

5440

Call-ID: a84b4c76e66710

5441

CSeq: 314159 INVITE

5442

Contact: <sip:[email protected]>

5443

Content-Type: application/sdp

5444

Content-Length: 142

5445

5446

(Alice’s SDP not shown)

5447

5448

F2 100 Trying atlanta.com proxy -> Alice

5449 5450

SIP/2.0 100 Trying

5451

Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKnashds8

5452

;received=192.0.2.1

5453

To: Bob <sip:[email protected]>

5454

From: Alice <sip:[email protected]>;tag=1928301774

5455

Call-ID: a84b4c76e66710

5456

CSeq: 314159 INVITE

5457

Content-Length: 0

5458

5459

F3 INVITE atlanta.com proxy -> biloxi.com proxy

5460

5461

INVITE sip:[email protected] SIP/2.0

5462

Via: SIP/2.0/UDP bigbox3.site3.atlanta.com;branch=z9hG4bK77ef4c2312983.1

5463

Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKnashds8

5464

;received=192.0.2.1

5465

Max-Forwards: 69

5466

To: Bob <sip:[email protected]>

5467

From: Alice <sip:[email protected]>;tag=1928301774

5468

Call-ID: a84b4c76e66710

5469

CSeq: 314159 INVITE

5470

Contact: <sip:[email protected]>

5471

Content-Type: application/sdp

5472

Content-Length: 142

5473

5474

(Alice’s SDP not shown)

5475

5476

F4 100 Trying biloxi.com proxy -> atlanta.com proxy

5477 5478

SIP/2.0 100 Trying

5479

Via: SIP/2.0/UDP bigbox3.site3.atlanta.com;branch=z9hG4bK77ef4c2312983.1

5480

;received=192.0.2.2

5481

Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKnashds8

5482

;received=192.0.2.1

5483

To: Bob <sip:[email protected]>

5484

From: Alice <sip:[email protected]>;tag=1928301774

5485

Call-ID: a84b4c76e66710

5486

CSeq: 314159 INVITE

5487

Content-Length: 0

5488

5489

F5 INVITE biloxi.com proxy -> Bob

5490 5491

INVITE sip:[email protected] SIP/2.0

5492

Via: SIP/2.0/UDP server10.biloxi.com;branch=z9hG4bK4b43c2ff8.1

5493

Via: SIP/2.0/UDP bigbox3.site3.atlanta.com;branch=z9hG4bK77ef4c2312983.1

5494

;received=192.0.2.2

5495

Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKnashds8

5496

;received=192.0.2.1

5497

Max-Forwards: 68

5498

To: Bob <sip:[email protected]>

5499

From: Alice <sip:[email protected]>;tag=1928301774

5500

Call-ID: a84b4c76e66710

5501

CSeq: 314159 INVITE

5502

Contact: <sip:[email protected]>

5503

Content-Type: application/sdp

5504

Content-Length: 142

5505 5506

(Alice’s SDP not shown)

5507

5508

F6 180 Ringing Bob -> biloxi.com proxy

5509

5510

SIP/2.0 180 Ringing

5511

Via: SIP/2.0/UDP server10.biloxi.com;branch=z9hG4bK4b43c2ff8.1

5512

;received=192.0.2.3

5513

Via: SIP/2.0/UDP bigbox3.site3.atlanta.com;branch=z9hG4bK77ef4c2312983.1

5514

;received=192.0.2.2

5515

Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKnashds8

5516

;received=192.0.2.1

5517

To: Bob <sip:[email protected]>;tag=a6c85cf

5518

From: Alice <sip:[email protected]>;tag=1928301774

5519

Call-ID: a84b4c76e66710

5520

Contact: <sip:[email protected]>

5521

CSeq: 314159 INVITE

5522

Content-Length: 0

5523

5524

F7 180 Ringing biloxi.com proxy -> atlanta.com proxy

5525

5526

SIP/2.0 180 Ringing

5527

Via: SIP/2.0/UDP bigbox3.site3.atlanta.com;branch=z9hG4bK77ef4c2312983.1

5528

;received=192.0.2.2

5529

Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKnashds8

5530

;received=192.0.2.1

5531

To: Bob <sip:[email protected]>;tag=a6c85cf

5532

From: Alice <sip:[email protected]>;tag=1928301774

5533

Call-ID: a84b4c76e66710

5534

Contact: <sip:[email protected]>

5535

CSeq: 314159 INVITE

5536

Content-Length: 0

5537

5538

F8 180 Ringing atlanta.com proxy -> Alice

5539

5540

SIP/2.0 180 Ringing

5541

Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKnashds8

5542

;received=192.0.2.1

5543

To: Bob <sip:[email protected]>;tag=a6c85cf

5544

From: Alice <sip:[email protected]>;tag=1928301774

5545

Call-ID: a84b4c76e66710

5546

Contact: <sip:[email protected]>

5547

CSeq: 314159 INVITE

5548

Content-Length: 0

5549

5550

F9 200 OK Bob -> biloxi.com proxy

5551

5552

SIP/2.0 200 OK

5553

Via: SIP/2.0/UDP server10.biloxi.com;branch=z9hG4bK4b43c2ff8.1

5554

;received=192.0.2.3

5555

Via: SIP/2.0/UDP bigbox3.site3.atlanta.com;branch=z9hG4bK77ef4c2312983.1

5556

;received=192.0.2.2

5557

Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKnashds8

5558

;received=192.0.2.1

5559

To: Bob <sip:[email protected]>;tag=a6c85cf

5560

From: Alice <sip:[email protected]>;tag=1928301774

5561

Call-ID: a84b4c76e66710

5562

CSeq: 314159 INVITE

5563

Contact: <sip:[email protected]>

5564

Content-Type: application/sdp

5565

Content-Length: 131

5566 5567

(Bob’s SDP not shown)

5568

5569

F10 200 OK biloxi.com proxy -> atlanta.com proxy

5570

5571

SIP/2.0 200 OK

5572

Via: SIP/2.0/UDP bigbox3.site3.atlanta.com;branch=z9hG4bK77ef4c2312983.1

5573

;received=192.0.2.2

5574

Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKnashds8

5575

;received=192.0.2.1

5576

To: Bob <sip:[email protected]>;tag=a6c85cf

5577

From: Alice <sip:[email protected]>;tag=1928301774

5578

Call-ID: a84b4c76e66710

5579

CSeq: 314159 INVITE

5580

Contact: <sip:[email protected]>

5581

Content-Type: application/sdp

5582

Content-Length: 131

5583 5584

(Bob’s SDP not shown)

5585

5586

F11 200 OK atlanta.com proxy -> Alice

5587

5588

SIP/2.0 200 OK

5589

Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKnashds8

5590

;received=192.0.2.1

5591

To: Bob <sip:[email protected]>;tag=a6c85cf

5592

From: Alice <sip:[email protected]>;tag=1928301774

5593

Call-ID: a84b4c76e66710

5594

CSeq: 314159 INVITE

5595

Contact: <sip:[email protected]>

5596

Content-Type: application/sdp

5597

Content-Length: 131

5598 5599

(Bob’s SDP not shown)

5600

5601

F12 ACK Alice -> Bob

5602

5603

ACK sip:[email protected] SIP/2.0

5604

Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKnashds9

5605

Max-Forwards: 70

5606

To: Bob <sip:[email protected]>;tag=a6c85cf

5607

From: Alice <sip:[email protected]>;tag=1928301774

5608

Call-ID: a84b4c76e66710

5609

CSeq: 314159 ACK

5610

Content-Length: 0

5611

The media session between Alice and Bob is now established.

5612

Bob hangs up first. Note that Bob’s SIP phone maintains its own CSeqnumbering space, which, in

5613

this example, begins with 231. Since Bob is making the request, theToandFromURIs and tags have been

5614

swapped.

5615

5616

F13 BYE Bob -> Alice

5617 5618

BYE sip:[email protected] SIP/2.0

5619

Via: SIP/2.0/UDP 192.0.2.4;branch=z9hG4bKnashds10

5620

Max-Forwards: 70

5621

From: Bob <sip:[email protected]>;tag=a6c85cf

5622

To: Alice <sip:[email protected]>;tag=1928301774

5623

Call-ID: a84b4c76e66710

5624

CSeq: 231 BYE

5625

Content-Length: 0

5626

5627

F14 200 OK Alice -> Bob

5628 5629

SIP/2.0 200 OK

5630

Via: SIP/2.0/UDP 192.0.2.4;branch=z9hG4bKnashds10

5631

From: Bob <sip:[email protected]>;tag=a6c85cf

5632

To: Alice <sip:[email protected]>;tag=1928301774

5633

Call-ID: a84b4c76e66710

5634

CSeq: 231 BYE

5635

Content-Length: 0

5636

The SIP Call Flows document [40] contains further examples of SIP messages.

5637

In document SIP: Session Initiation Protocol (Page 150-155)