SIP 기본 메시지 흐름 및 테스트 방법

SIP Center에서 SIP 개발자들을 위한 테스트 베드 및 소프트폰을 제공하고 있는데, SIP 기본 메시지는 아래와 같다.

소프트폰 다운로드 : http://www.sipcenter.com/sip.nsf/html/SIP+User+Agent+Downloads

1. Registration

Client 2 > SIP Center SIP Application Server

REGISTER sip:10.20.30.20 SIP/2.0
To: < sip:ua2@sipcenter.com >
From: < sip:ua2@sipcenter.com >
Call-ID: -1189109688-503913370@10.20.30.20
CSeq: 1 REGISTER
Via: SIP/2.0/UDP 10.20.30.20
Contact: < sip:ua2@10.20.30.20 >
Expires: 3600
Content-Length: 0

SIP Center SIP Application Server > Client 2

SIP/2.0 401 Unauthorized
< sip:ua2@sipcenter.com > To: ; tag=C1C3349813C4000000E4DBA5351E
From: < sip:ua2@sipcenter.com >
CSeq: 1 REGISTER
Call-ID: -1189109688-503913370@10.20.30.20
Via: SIP/2.0/UDP 10.20.30.20
WWW-Authenticate: Digest realm="Ubiquity Software Corporation", nonce="e4dba705a63c87d3047...
ed8d7bca05919d352f5baeb", opaque="1234567890abcedef", stale=false, algorithm=MD5, qop="auth, auth-int"
l: 0

Client 2 > SIP Center SIP Application Server

REGISTER sip: 10.20.30.20 SIP/2.0
To: < sip:ua2@sipcenter.com >
From: < sip:ua2@sipcenter.com >
Call-ID: -1189109688-503913370@10.20.30.20
CSeq: 2 REGISTER
Via: SIP/2.0/UDP 10.20.30.20
Contact: < sip:ua2@10.20.30.20 >
Expires: 3600
Content-Length: 0
Authorization: Digest username="test", realm="Ubiquity Software Corporation", nonce="e4dba705a63c87d304...
7ed8d7bca05919d352f5baeb", uri="sip:193.195.52.152", algorithm=MD5, qop=auth-int, cnonce="e4dba728ce583398ac1aa8a667...
130b69fad9a2b2c2", nc=00 000001, opaque="1234567890abcedef", response="083a0befad19154e0169b6 120e3cd0bb"

SIP Center SIP Application Server > Client 2

SIP/2.0 200 OK
To: < sip:ua2@sipcenter.com >;tag=C1C3349813C4000000E4DBA5351E
From: < sip:ua2@sipcenter.com >
CSeq: 2 REGISTER
Call-ID: -1189109688-503913370@10.20.30.20
Via: SIP/2.0/UDP 10.20.30.20
Contact: < sip:ua2@10.20.30.20 >;action=proxy;expires=3599
Expires: Fri, 23 Feb 2001 15:15:08 GMT
l: 0

Client 2 is now registered with the SIP Server and is ready to take part in the SIP proxy server testing.

 

2. Session

Client 1 will now initiate the call. The message flow should continue as follows for a successful call set-up. As with previous example, this document will assume that the call "tear down" and "ACK" transaction will take place directly between clients and will not be represented in the call flow.

Client 1 > PSTEST

INVITE sip:ua2@sipcenter.com SIP/2.0
CSeq: 2 INVITE
To: sip:ua2@sipcenter.com
From: ua1< sip:ua1@10.20.30.10 >
Call-ID: 689074775671095236@10.20.30.10
Via: SIP/2.0/UDP 10.20.30.10
Contact: < sip:ua1@10.20.30.10 >
Subject: no subject
Content-Type: application/sdp
Content-Length: 123
v=0
o=- 982931950090 982931950090 IN IP4 10.20.30.10
s=-
c=IN IP4 10.20.30.10
t=0 0
m=audio 5004 RTP/AVP 8 3 0

PSTEST > Client 1

SIP/2.0 100 Trying
To: sip:ua2@sipcenter.com
From: ua1< sip:ua1@10.20.30.10 >
CSeq: 2 INVITE
Call-ID: 689074775671095236@10.20.30.10
Via: SIP/2.0/UDP 10.20.30.10
Content-Length: 0

PSTEST > SIP Center SIP Application Server

INVITE sip:ua2@sipcenter.com SIP/2.0
CSeq: 2 INVITE
To: sip:ua2@sipcenter.com
From: ua1< sip:ua1@10.20.30.10 >
Call-ID: 689074775671095236@10.20.30.10
Via: SIP/2.0/UDP
10.20.30.30:5060;branch= C1C3349813C4000000E4DB49274Cpotato 0potato0potato0
Via: SIP/2.0/UDP 10.20.30.10
Contact: < sip:ua1@10.20.30.10 >
Subject: no subject
Content-Type: application/sdp
Content-Length: 123

v=0
o=- 982931950090 982931950090 IN IP4 10.20.30.10
s=-
c=IN IP4 10.20.30.10
t=0 0
m=audio 5004 RTP/AVP 8 3 0

SIP Center SIP Application Server > PSTEST

SIP/2.0 100 Trying
To: sip:ua2@sipcenter.com
From: ua1< sip:ua1@10.20.30.10 >
CSeq: 2 INVITE
Call-ID: 689074775671095236@10.20.30.10
Via: SIP/2.0/UDP 10.20.30.10
Content-Length: 0

SIP Center SIP Application Server > Client 2

INVITE sip:ua2@10.20.30.20 SIP/2.0
CSeq: 2 INVITE
To: sip:ua2@sipcenter.com
From: ua1< sip:ua1@10.20.30.10 >
Call-ID: 689074775671095236@10.20.30.10
Via: SIP/2.0/UDP
10.20.30.40;branch=C1C3348813C400000 0E4DB4A6468potato0potato 0potato0
Via: SIP/2.0/UDP
10.20.30.30;branch=C1C3349813C400000 0E4DB49274Cpotato0potato 0potato0
Via: SIP/2.0/UDP 10.20.30.10
Contact: < sip:ua1@10.20.30.10 >
Subject: no subject
Content-Type: application/sdp
Content-Length: 123

v=0
o=- 982931950090 982931950090 IN IP4 10.20.30.10
s=-
c=IN IP4 10.20.30.10
t=0 0
m=audio 5004 RTP/AVP 8 3 0

Client 2 > SIP Center SIP Application Server > PSTEST > Client 1

*note that top via would be stripped as each hop is passed through.

SIP/2.0 180 Ringing
To: sip:ua2@sipcenter.com
From: ua1< sip:ua1@10.20.30.10 >
CSeq: 2 INVITE
Call-ID: 689074775671095236@10.20.30.10
Via: SIP/2.0/UDP
10.20.30.40;branch=C1C3348813C400000 0E4DB4A6468potato0potato 0potato0
Via: SIP/2.0/UDP
10.20.30.30;branch=C1C3349813C400000 0E4DB49274Cpotato0potato 0potato0
Via: SIP/2.0/UDP 10.20.30.10
Content-Length: 0

Client 2 > SIP Center SIP Application Server > PSTEST > Client 1

SIP/2.0 200 OK
To: sip:ua2@sipcenter.com;tag=117530467
From: ua1< sip:ua1@10.20.30.10 >
CSeq: 2 INVITE
Call-ID: 689074775671095236@10.20.30.10
Via: SIP/2.0/UDP
10.20.30.40;branch=C1C3348813C400000 0E4DB4A6468potato0potato 0potato0
Via: SIP/2.0/UDP
10.20.30.30;branch=C1C3349813C400000 0E4DB49274Cpotato0potato 0potato0
Via: SIP/2.0/UDP 10.20.30.10
Contact: < sip:ua2@10.20.30.20 >
Content-Type: application/sdp
Content-Length: 101

v=0
o=- 0 0 IN IP4 10.20.30.20
s=-
c=IN IP4 10.20.30.20
t=0 0
m=audio 5004 RTP/AVP 8 3 0

3. Diagram

이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by Charley Lim

2009/01/22 15:15 2009/01/22 15:15

Trackback URL : http://blogzin.net/charley/trackback/197

Leave a comment
[로그인][오픈아이디란?]

Calendar

«   2010/03   »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Site Stats

Total hits:
251592
Today:
33
Yesterday:
218

266

133

-30 days

today : 33