Upload
779482688
View
19
Download
0
Embed Size (px)
DESCRIPTION
SIP training (in chinese)
Citation preview
7/21/2019 SIP training
1/61
http://www.itibia.com [email protected]
NGN SIP
025-2871355
Email:[email protected]!.com.cn
"tibia #!chnologi!$ %onfid!ntial
7/21/2019 SIP training
2/61
http://www.itibia.com [email protected]
SIP, H.323 and H.248SIP, H.323 and H.248
SIP?SIP?SIPSIP ---- SIPSIP SIPSIP SIPSIP
SIPSIP !"#!"# SDPSDP $%&'()*+$%&'()*+SIPSIP ,-,-SIPSIP ./0123./0123
4545 SIPSIP 67./89:367./89:3
SIPSIP ;!"?
7/21/2019 SIP training
3/61
http://www.itibia.com [email protected]
RTCPRTP
SIP, H.323 and H.248
IP
&.2'8/(!gaco
67LM8NO NO8PLM !"
H.225
Q.931
H.323
TCP
RAS
UDP
)"*H.245
QR /SR
RTSP
7/21/2019 SIP training
4/61
http://www.itibia.com [email protected]
H.248!"e#acoH.248!"e#aco TT I%T&I%T& UU IT'-TIT'-TMV!"PLMWXY!"PLMMV!"PLMWXY!"PLMZ8!"P[\0N]Z8!"P[\0N]
SIP, H.323 and H.248SIP, H.323 and H.248
H.323H.323 H.323 H.323 ^_`abcd4eSRUQR8fg0Nhi^_`abcd4eSRUQR8fg0NhiWW IT'-TIT'-TMV`jkbcd;!"0NlmMV`jkbcd;!"0Nlm H.32H.32 ^n^n ..
H.323H.323 oo 88 22 H.24* o+er TP, .3 o+er TPH.24* o+er TP, .3 o+er TP88 /0S o+er 'DP./0S o+er 'DP.
H.323H.323 oo 33 88 44 H.24* o+er 'DP!TP and .3H.24* o+er 'DP!TP and .3o+er 'DP!TPo+er 'DP!TP 88 /0S o+er 'DP./0S o+er 'DP.
7/21/2019 SIP training
5/61
http://www.itibia.com [email protected]
SIP?
Session Initiation Protocol -%&Fp
IETFMV;!"0NWq^rYstXuLMWv/YwuWXY./Uxy8z{IPb
|}~;};!"%&
7/21/2019 SIP training
6/61
http://www.itibia.com [email protected]
SIP?
SIPMMUSIC IETFa`1995
WIETFa`1999c^rhi SIPWebHTTP8SMTPr
`FG[WPM#8
7/21/2019 SIP training
7/61http://www.itibia.com [email protected]
SIP?SIP?
SIPUVU,-VXWXWCRTP/RTCPUSDPURTSPUDNSW8tXYSUQRUfg;!"
7/21/2019 SIP training
8/61http://www.itibia.com [email protected]
+!di,!ct
)!,!,
SIP --
ocation
)!,!,
+!gi$t,a,
)!,!,
$!, g!nt
*,oy
)!,!,
at!way
PSTN
SIP
*,oy
)!,!,
X
=Z
SIP
SIP SIP
SIP SIP
LDAP
LDAP
=Z
V=Z ,-=Z
P
7/21/2019 SIP training
9/61http://www.itibia.com [email protected]
$!, g!nt$ - X
.User Agent Clients (UAC)
SIP
.
User Agent Serer (UAS) !" SIP
.
UAC 8 UAS !#$% .
SIP --
7/21/2019 SIP training
10/61http://www.itibia.com [email protected]
SIPSIP ----
*,oy )!,!, - =Z
&'()*+, Redirect Server-./
0*+, Proxy Server-1
23456789:;
SIP!
>?
7/21/2019 SIP training
11/61http://www.itibia.com [email protected]
11
ocation )!,!, - =Z
QRSTUVWXYU6Z[/0
\=2
SIP'()*+
(RedirectServer)]89*+ (proxy server) ^
_`%U6a/0\= .
SIP
--
7/21/2019 SIP training
12/61http://www.itibia.com [email protected]
+!di,!ct )!,!, - V=Z&/0*+, Location Server-1
,bc LDAP
dU6e/0fgK$%h?$%haiS
jDe/0'e$%?
&89*+ proxy serverklQ ,
redirect serverkmn$% .
&
user agentklQ
, redirectserverk!o$%] p$% .
SIP --
7/21/2019 SIP training
13/61http://www.itibia.com [email protected]
+!gi$t,a, )!,!, - ,-=Z
!o REIS!ER qrU6stuvw
axyz{|
SIP
--
7/21/2019 SIP training
14/61http://www.itibia.com [email protected]
SIPSIP
SIP Proxy Server} RedirectServer} Register Server} Location Servera~WVaxkl9? SIP*+qQaxiS;VA
SIP
UAC} UAS} Proxy Server} Redirect ServerkQ(k UA$%axQ UAC
axQ
UAS?
Location ServerQ SIP~C4\=UbckQ SIPQ34bcLDAP, Lig"t Directory Access Protoco#-
7/21/2019 SIP training
15/61http://www.itibia.com [email protected]
bc SIP$%1hU689 UA&qraxk*+?*+0Q
*+axU6}9iS
CU6$%:;1@?laxNU
*+^_
CAS, Convergency App#ication service-?
hax*+:;CYU
6 SIP
7/21/2019 SIP training
16/61
http://www.itibia.com [email protected]
SIPSIP
SIP*+$%21, State$u#-}, Unstate$u#-}1$%, Ca## State$u#-?1QC:;1$%QC$%:;?
U SIP*+/V
SIP*+G9 l^_'()Q*+?89*+G
94G9 H1
\=k
7/21/2019 SIP training
17/61
http://www.itibia.com [email protected]
*+G91RU6$%Q
1$%*+?4@U6QNU*
C:;9
?
U*+1$%>*+
bCU6a9
aax!U6RS
Q
? SIP1'OP
1
?
SIPSIP
7/21/2019 SIP training
18/61
http://www.itibia.com [email protected]
SIPSIP U Client/Server HTTPbc
MNrAq$%
7/21/2019 SIP training
19/61
http://www.itibia.com [email protected]
2 SIPYU6^_(/
(/h SIP URLB Emailst
:;b !bc SDP,"#bc$ Session
Describle Protocol- U
7/21/2019 SIP training
20/61
7/21/2019 SIP training
21/61
http://www.itibia.com [email protected]
SIP }8t
)"* :I%&I!E %U6&G$% .
AC'' UV UCH"DCV INVITEIMN
INVITE
7/21/2019 SIP training
22/61
http://www.itibia.com [email protected]
"
p
SIPSIP
INVITE sip:[email protected] SIP/2.0 Via: SIP/2.0/UDP zhangli.sz.com.cn
From: hangli !sip:[email protected]"
To: Liming !sip:[email protected]"
#all$ID: %%2%0%&'%@zhangli.sz.com.cn
#S(): * INVITE #on+ac+: !sip: [email protected] "
#on+(n+$T,p(: applica+ion/s-p
#on+(n+$L(ng+h: ...
0
o(ll 1%11'%1 21%&'%' IN IP3*2&..3.1
s4r. Liming5 ha( a cha+.
+0 0
cIN IP3 liming.sz.com.cn
ma6-io 31% 7TP/8VP 0
ar+pmap:0 P#4U/&000
7/21/2019 SIP training
23/61
http://www.itibia.com [email protected]
p
SIPSIP
7E9ISTE7 sip:sz.com.cn SIP/2.0
Via: SIP/2.0/UDP [email protected]
From: hangli !sip: [email protected] "
To: Liming !sip:[email protected]" #all$ID: %%2%0%&'%@zhangli.sz.com.cn
#S(): * 7E9ISTE7
#on+ac+: !sip: [email protected] "
Epir(s: %00
7/21/2019 SIP training
24/61
http://www.itibia.com [email protected]
p
SIPSIP tt
SIP/2.0 *&0 7inging
Via: SIP/2.0/UDP zhangli.sz.com.cn
From: hangli !sip:[email protected]"
To: Liming !sip:[email protected]"#all$ID: %%2%0%&'%@zhangli.sz.com.cn
#S(): * INVITE
#on+ac+: ! sip:[email protected] "
#on+(n+$L(ng+h: 0
7/21/2019 SIP training
25/61
http://www.itibia.com [email protected]
p
SIPSIP ttSIP/2.0 200 ;
7/21/2019 SIP training
26/61
http://www.itibia.com [email protected]
SIP
SIP X SIP UR" V # $
%ser&'st!! X & ( ~ ).
SIP UR" 45 $
si$'stn*+e&,'in*tele,+.rgsi$'stn*+e&192.1-.1.1
si$14331&0te.,+
si$192.1-.1.1
7/21/2019 SIP training
27/61
http://www.itibia.com [email protected]
SDP T
XY IP ./;!"%&e!"NWqV
% &'(^NT
% & 8
% & e \
% & ! "
! " N $ U U )
% & X N
% & l N
!"#!"# SDPSDP $%&'()*+$%&'()*+
7/21/2019 SIP training
28/61
http://www.itibia.com [email protected]
!"# SDP $%&'()*+
5T 0
o(ll 1%11'%1 21%&'%' IN IP3 *2&..3.1
s4r. >a+son5 com( h(r(. i8 S(minar on +h( s(ssion -(scrip+ion pro+ocol
+*3=2&%00 0
cIN IP3 *2&..3.1
ma6-io 31% 7TP/8VP 0 3 1
ar+pmap:0 P#4U/&000 ar+pmap: 9S4/&000
ar+pmap:3 9'2/&000
ar+pmap:1 DVI3/&000
%&
'(n
!
"'(n
!"
!"
!"
7/21/2019 SIP training
29/61
http://www.itibia.com [email protected]
/e#i1raion - ,-
ZU6
cd SIPY
( PC,IP P4+%E), d)
89*+ 3T*+
T
Tefge
T
*+d
h SIPY
T
\=ID/0*+
WX
.
)"* (!$$ag!$:
+E")#E+ +!gi$t!,$ th! add,!$$ li$t!d in th! #oh!ad!, fi!ld.
200 4.
*,oy )!,!,)"* *hon!
$!,
ocation/
+!gi$t,ation
)!,!,+E")#E+ +E")#E+
200200
7/21/2019 SIP training
30/61
http://www.itibia.com [email protected]
SIP ./0123
X )"* ./010r :
,- 6 Fp8VX .
!"# -- 0X )* }!"f .
7}V67 .
67!"./ .
67y~67 .
67z{ .
7/21/2019 SIP training
31/61
http://www.itibia.com [email protected]
SIP 67./8
+#* (E" *#&
9E 9E
200 4; 200 4;679:
!"0
67./
*,oy )!,!, *,oy )!,!, $!, g!nt$!, g!nt
100 #,ying;
*00.*.0.212 *00.*.0.21 *00.2.0.2 *00.2.0.&
"
7/21/2019 SIP training
32/61
http://www.itibia.com [email protected]
@A SIP 67./89:3B
302
(o!d #!mpo,a,ily;
"
7/21/2019 SIP training
33/61
http://www.itibia.com [email protected]
45 SIP 67./89:3
+#* (E" *#&
9E 9E
200 4; 200 4;679:
!"0
67./
*,oy )!,!, *,oy )!,!, $!, g!nt$!, g!nt
100 #,ying;
*00.*.0.212 *00.*.0.21 *00.2.0.2 *00.2.0.&
"
7/21/2019 SIP training
34/61
http://www.itibia.com [email protected]
45 SIP 67./89:31. "u$!,?phon!>t,an$po,t?udpB
$!,-g!nt: %i$co # 2.11 ata18D 0803a;
Epi,!$: 300
%ont!nt-!ngth: 2'5
%ont!nt-#yp!: application/$dp
?0
o?02120001 573 573 "< "*' 100.1.0.252
$?#18D %all
c?"< "*' 100.1.0.252
t?0 0
m?audio 10000 +#*/=* 0 ' 8 101a?,tpmap:0 *%(/8000/1
a?,tpmap:' 723/8000/1
a?,tpmap:8 *%(/8000/1
a?,tpmap:101 t!l!phon!-!!nt/8000
a?fmtp:101 0-15
7/21/2019 SIP training
35/61
http://www.itibia.com [email protected]
45 SIP 67./89:32. )"*/2.0 100 #,ying
=ia: )"*/2.0/* 100.1.0.252
%all-": [email protected]
,om: A$ip:[email protected]>u$!,?phon!B>tag?1C81'8D230#o: A$ip:[email protected]>u$!,?phon!B
%)!: 1 "u$!,?phon!B>tag?1C81'8D230
#o: A$ip:[email protected]>u$!,?phon!B
%all-": [email protected]
%)!: 1 "
7/21/2019 SIP training
36/61
http://www.itibia.com [email protected]
45 SIP 67./89:3'. )"*/2.0 100 #,ying
=ia: )"*/2.0/* 100.1.0.25:50D0>b,anch?b!b'b5'0-D5a2!a80-f7CdC'fd-D870ff'5-1
=ia: )"*/2.0/* 100.1.0.252
,om: A$ip:[email protected]>u$!,?phon!B>tag?1C81'8D230
#o: A$ip:[email protected]>u$!,?phon!B
%all-": [email protected]
%)!: 1 "b,anch?b!b'b5'0-D5a2!a80-f7CdC'fd-D870ff'5-1
=ia: )"*/2.0/* 100.1.0.252
,om: A$ip:[email protected]>u$!,?phon!B>tag?1C81'8D230
#o: A$ip:[email protected]>u$!,?phon!B%)!: 1 "
7/21/2019 SIP training
37/61
http://www.itibia.com [email protected]
45 SIP 67./89:3D. )"*/2.0 100 #,ying
,om: A$ip:[email protected]>u$!,?phon!B>tag?1C81'8D230
#o: A$ip:[email protected]>u$!,?phon!B>tag?1'502
%all-"d: [email protected]
%$!: 1 "b,anch?b!b'b5'0-D5a2!a80-f7CdC'fd-D870ff'5-1
=ia: )"*/2.0/* 100.1.0.252
%ontact: $ip:[email protected]
$!,-g!nt: *ingt!l/1.1.1 =Fo,G$;
%ont!nt-!ngth: 0
8. )"*/2.0 180 +inging
=ia: )"*/2.0/* 100.1.0.25:50D0>b,anch?b!b'b5'0-D5a2!a80-f7CdC'fd-D870ff'5-1
=ia: )"*/2.0/* 100.1.0.252
,om: A$ip:[email protected]>u$!,?phon!B>tag?1C81'8D230
#o: A$ip:[email protected]>u$!,?phon!B>tag?1'502
%$!: 1 "
7/21/2019 SIP training
38/61
http://www.itibia.com [email protected]
45 SIP 67./89:3C. )"*/2.0 180 +inging
=ia: )"*/2.0/* 100.1.0.252
,om: A$ip:[email protected]>u$!,?phon!B>tag?1C81'8D230
#o: A$ip:[email protected]>u$!,?phon!B>tag?1'502
%)!: 1 "b,anch?b!b'b5'0-D5a2!a80-f7CdC'fd-D870ff'5-1
=ia: )"*/2.0/* 100.1.0.252
+!co,d-+out!: A$ip:[email protected]:50D0>madd,?100.2.0.2B
%ontact: $ip:[email protected]
llow: "
7/21/2019 SIP training
39/61
http://www.itibia.com [email protected]
45 SIP 67./89:311. )"*/2.0 200 4
=ia: )"*/2.0/* 100.1.0.25:50D0>b,anch?b!b'b5'0-D5a2!a80-f7CdC'fd-D870ff'5-1
=ia: )"*/2.0/* 100.1.0.252
,om: A$ip:[email protected]>u$!,?phon!B>tag?1C81'8D230
#o: A$ip:[email protected]>u$!,?phon!B>tag?1'502
%$!: 1 "madd,?100.2.0.2B
$!,-g!nt: *ingt!l/1.1.1 =Fo,G$;
?0
o?*ingt!l 5 5 "< "*' 100.2.0.8
$?phon!-call
c?"< "*' 100.2.0.8
t?0 0
m?audio 87DD +#*/=* 0 8 101
a?,tpmap:0 pcmu/8000/1
a?,tpmap:8 pcma/8000/1
a?,tpmap:101 t!l!phon!-!!nt/8000/1
7/21/2019 SIP training
40/61
http://www.itibia.com [email protected]
45 SIP 67./89:312. )"*/2.0 200 4
=ia: )"*/2.0/* 100.1.0.252
,om: A$ip:[email protected]>u$!,?phon!B>tag?1C81'8D230
#o: A$ip:[email protected]>u$!,?phon!B>tag?1'502
%)!: 1 "u$!,?phon!B>tag?1C81'8D230
#o: A$ip:[email protected]>u$!,?phon!B>tag?1'502
%all-": [email protected]
%)!: 1 %
$!,-g!nt: %i$co # 2.11 ata18D 0803a;
%ont!nt-!ngth: 0
7/21/2019 SIP training
41/61
http://www.itibia.com [email protected]
45 SIP 67./89:31'. % $ip:[email protected]:50D0 )"*/2.0
=ia: )"*/2.0/* 100.1.0.252
,om: A$ip:[email protected]>u$!,?phon!B>tag?1C81'8D230
#o: A$ip:[email protected]>u$!,?phon!B>tag?1'502
%)!: 1 %
%all-": [email protected]
%ont!nt-!ngth: 0
$!,-g!nt: %i$co # 2.11 ata18D 0803a;
15. 4*#"4madd,?100.2.0.2 )"*/2.0
+out!: A$ip:[email protected]>t,an$po,t?udp>u$!,?phon!B
,om: A$ip:[email protected]>u$!,?phon!B>tag?1'502
#o: A$ip:[email protected]>u$!,?phon!B>tag?1C81'8D230
%all-"d: [email protected]
%$!: 1 4*#"4
7/21/2019 SIP training
42/61
http://www.itibia.com [email protected]
45 SIP 67./89:317. 9E $ip:[email protected]:50D0>madd,?100.2.0.2 )"*/2.0
+out!: A$ ip:[email protected]>t,an$po,t?udp>u$!,?phon!B
,om: A$ip:[email protected]>u$!,?phon!B>tag?1'502
#o: A$ip:[email protected]>u$!,?phon!B>tag?1C81'8D230
%all-"d: [email protected]
%$!: 2 9E
cc!pt-anguag!: !n
)uppo,t!d: $ip-cc6 $ip-cc-016 tim!,
$!,-g!nt: *ingt!l/1.1.1 =Fo,G$;
=ia: )"*/2.0/* 100.2.0.8
%ont!nt-!ngth: 0
18. )"*/2.0 200 4G
=ia: )"*/2.0/* 100.2.0.8
,om: A$ip:[email protected]>u$!,?phon!B>tag?1'502#o: A$ip:[email protected]>u$!,?phon!B>tag?1C81'8D230
%all-": [email protected]
%$!: 2 9E
%ont!nt-!ngth: 0
1C. 9E $ip:[email protected]>t,an$po,t?udp>u$!,?phon! )"*/2.0
=ia: )"*/2.0/* 100.2.0.2:50D0
=ia: )"*/2.0/* 100.2.0.8
,om: A$ip:[email protected]>u$!,?phon!B>tag?1'502
#o: A$ip:[email protected]>u$!,?phon!B>tag?1C81'8D230%$!: 2 9E
%all-"d: [email protected]
%ont!nt-!ngth: 0
)uppo,t!d: $ip-cc
)uppo,t!d: $ip-cc-01
)uppo,t!d: tim!,
cc!pt-anguag!: !n
$!,-g!nt: *ingt!l/1.1.1 =Fo,G$;
45 67./ 9:
7/21/2019 SIP training
43/61
http://www.itibia.com [email protected]
45 SIP 67./89:320. )"*/2.0 200 4
=ia: )"*/2.0/* 100.2.0.2:50D0
=ia: )"*/2.0/* 100.2.0.8
,om: A$ip:[email protected]>u$!,?phon!B>tag?1'502
#o: A$ip:[email protected]>u$!,?phon!B>tag?1C81'8D230
%all-"d: [email protected]
%$!: 2 9E
)!,!,: %i$co # 2.11 ata18D 0803a;
%ont!nt-!ngth: 0
7/21/2019 SIP training
44/61
http://www.itibia.com [email protected]
at!way/(%
*)#