×î½üÒ»Ö±ÔÚÑо¿SIPp
uas£¬Ïֽ׶εÄÏë·¨ÊÇÏëͨ¹ýÕæʵ»°»úºô½ÐuasÓû§£¬uas¿ÉÒÔ²¥·ÅÓïÒôÁ÷£¬µ«ÏÖʵÓëÀíÏë»á´æÔںܴóµÄ²î¾à£¬µ±Õæʵ»°»úºô½Ðuasʱ£¬ÓÃwireshark×¥°ü£¬ÒѾÊÕµ½ÁËINVITE,µ«uasÒ»Ö±ÏÔʾûÓÐÊÕµ½£¬´úÂëÈçÏ£º
l4hkh.~u2?B.k0V9KN3D9d+ZK V051TestingÈí¼þ²âÊÔÍød*IQW(mK<?xml version="1.0" encoding="ISO-8859-1" ?>
X}!o}(w
V.T;e0<!DOCTYPE scenario SYSTEM "
sipp.dtd">
(J*EI0@
tS051TestingÈí¼þ²âÊÔÍø9eJ5a(YHuL<!-- This program is free software; you can redistribute it and/or -->
51TestingÈí¼þ²âÊÔÍøn q1Pkc({D}<!-- modify it under the terms of the GNU General Public License as -->
51TestingÈí¼þ²âÊÔÍø8f2U+Oq`9\*tH<!-- published by the Free Software Foundation; either version 2 of the -->
E,dh/|?
?s0<!-- License, or (at your option) any later version. -->
51TestingÈí¼þ²âÊÔÍø ]y1W3?-I_yO<!-- -->
51TestingÈí¼þ²âÊÔÍø9? Y(aWt,n
@s^<!-- This program is distributed in the hope that it will be useful, -->
51TestingÈí¼þ²âÊÔÍø.Aq E
z:^7E#h'L<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
51TestingÈí¼þ²âÊÔÍøz0]A6Q.d+ux<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
:tz1L:Wk9W-Fk$j5Ys0[2M0<!-- GNU General Public License for more details. -->
51TestingÈí¼þ²âÊÔÍø Hm?^c(LY.UB(sP<!-- -->
51TestingÈí¼þ²âÊÔÍø2_"e`%R@j<!-- You should have received a copy of the GNU General Public License -->
51TestingÈí¼þ²âÊÔÍø B fu2U9U&Jpv~_<!-- along with this program; if not, write to the -->
.K/{VC0ROmZ'j-Rg0<!-- Free Software Foundation, Inc., -->
51TestingÈí¼þ²âÊÔÍøa-G4\&P-xg/[z{<!-- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -->
#g5N3A
{S b
n8d0<!-- -->
51TestingÈí¼þ²âÊÔÍøo
f"H@mE6Cs-W4}<!-- Sipp default 'branchc' scenario. -->
51TestingÈí¼þ²âÊÔÍø
A2lf ukH
p:g[<!-- -->
51TestingÈí¼þ²âÊÔÍøhN
b%{+I~7?N<!-- Ê×ÏÈ·¢ËÍSIP×¢²áÏûÏ¢£¬Register¡£ÀïÃæµÄFromÓëToÊÇ×¢²áµÄºÅÂë -->
!_]O5DBSs x/}0<scenario name="branch_uas">
51TestingÈí¼þ²âÊÔÍøX @7S5cbM <send retrans="500">
51TestingÈí¼þ²âÊÔÍø0H'_j:[5I!^h6F3c <![CDATA[
51TestingÈí¼þ²âÊÔÍø5j/ElSmt:r*b:[9X6y 51TestingÈí¼þ²âÊÔÍøa qIr8LC^!P+a"o REGISTER sip:[remote_ip] SIP/2.0
51TestingÈí¼þ²âÊÔÍøfww(p-XE Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
(NYB(L7K'E\0 From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number];rport
p
ME'x\3y0 To: [field0] <sip:[field0]@[remote_ip]:[remote_port]>
51TestingÈí¼þ²âÊÔÍø$|0t|,Z!lv?o Call-ID: [call_id]
51TestingÈí¼þ²âÊÔÍø/ZHP:n\(gS,|3l CSeq: 1 REGISTER
51TestingÈí¼þ²âÊÔÍø$rTg7]Xxv Contact: sip:[field0]@[local_ip]:[local_port]
51TestingÈí¼þ²âÊÔÍø5^3ylC3d(F\ti Content-Length: 0
mk\B"fX,xK0 Expires: 300
1W"}F ~l1{C0 ]]>
51TestingÈí¼þ²âÊÔÍø9}s+c&ab/O5t </send>
51TestingÈí¼þ²âÊÔÍøe+wKoa.PzCG:P7dEU0 <recv response="100" ptional="true">
51TestingÈí¼þ²âÊÔÍøV5B Rc(U{T </recv>
51TestingÈí¼þ²âÊÔÍøcw X'm4F|i^H+AC[OfB0 <!-- SIPp»áÊÕµ½À´×ÔASTÒªÇóÑéÖ¤µÄ401 ÏûÏ¢Ì壬RecvÒâ˼ΪReceive£¬½ÓÊÕµ½À´×ÔASTµÄ401ÒªÇóÑéÖ¤µÄÏûÏ¢£¬NextΪÈç¹ûÊÕµ½401£¬ÄÇôתÖÁLabelΪ1µÄµØ·½½øÐвÙ×÷ -->
'g0S2K)kZ8z,B(G$c)Z#N0 <recv response="401" auth="true" next="1">
51TestingÈí¼þ²âÊÔÍøn
G s8ra'N8rL </recv>
51TestingÈí¼þ²âÊÔÍø$Nl!wa,_{$i:of1l
{B51TestingÈí¼þ²âÊÔÍø)D+V@'E]L(]8n oT
u <!-- send invite with authentication messages -->
51TestingÈí¼þ²âÊÔÍøNnE3R,O7wgi <!-- ¿ªÊ¼·¢ËÍRegisterÏûÏ¢£¬ÀïÃ潫°ÑÑéÖ¤µÄÃÜÂëÏûÏ¢·¢Ë͸ø¶Ô·½£¬ÔÚÏûÏ¢ÌåÀïÃæÊÇ×¥²»µ½ÃÜÂëÏûÏ¢µÄ£¬¶øÇÒÒѾ±»md5·½Ê½¼ÓÃܹý¡£-->
(~NWuN$o^7vi0f S
AD.y Er~
g]!o&F0 <label id="1"/>
nz*].XlOs)a0 <send retrans="500">
La5bOvA!^0 <![CDATA[
51TestingÈí¼þ²âÊÔÍøMM+T
Y(H%u "w1Q7_v4Ri/ZT*L@0 REGISTER sip:[field0]@[remote_ip]:[remote_port] SIP/2.0
$j\4E-or9f8p0 Via: SIP/2.0/[transport] [local_ip]:[local_port]
4?K4R4b|0 From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number];rport
's,C|7DAz5~Y-aSLN0 To: [field0] <sip:[field0]@[remote_ip]:[remote_port]>
9@y%v4T%S5YT0 Call-ID: [call_id]
51TestingÈí¼þ²âÊÔÍø5f6_"}IH5z s,T CSeq: 2 REGISTER
}"g'Jl
[0 Contact: sip:[field0]@[local_ip]:[local_port]
51TestingÈí¼þ²âÊÔÍøpJ5v7Cr0@L:BXS [field2]
)vQ(fYV"Szc0 Content-Length: [len]
51TestingÈí¼þ²âÊÔÍø ga:t-~e
A*@ Expires: 3600
HF&DXDb { x7`f0 ]]>
e,K3nH@,X c0 </send>
51TestingÈí¼þ²âÊÔÍø};r/{x-_1s-J$k*Z3W51TestingÈí¼þ²âÊÔÍø^o{;mTk9w#{I <recv response="100" ptional="true">
)DZ]a
Q'a2]/Y0 </recv>
@-A}['d0!|"|"e
v$a-N3B3Ny0 51TestingÈí¼þ²âÊÔÍøh[\gV`Q-A6ONR$dT0 <!-- ÊÕµ½À´×ÔASTµÄ200 ACKÏûÏ¢ºó£¬ÏµÍ³×ªÖÁµÈ´ý1000ms£¬»òÕß¿ÉÒÔÖ±½ÓÈ¥µô¸ÃÉèÖà -->
y,J3NG"|\02r1E5](]J0A5SdzV0 <recv response="200" next="2">
51TestingÈí¼þ²âÊÔÍøn `L\H$Q </recv>
51TestingÈí¼þ²âÊÔÍø t,W&T:vI#ox GZ6_h|vbx0 ML%Aj6`M-Q"T6S P0 <label id="2"/>
3J.@y3K%Yq#X6E0 51TestingÈí¼þ²âÊÔÍøy-aw{/Gy9@|M <recv request="INVITE" crlf="true" >
q:t+Sy!?,}}N0 </recv>
N"W i#v&T`uxF051TestingÈí¼þ²âÊÔÍø`
i@%`})wG4y^v 51TestingÈí¼þ²âÊÔÍøu$U(pg!I <!-- SEND 100 trying -->
DzR8eTp2UA0 <send retrans="500">
51TestingÈí¼þ²âÊÔÍø
CM"^
spM <![CDATA[
51TestingÈí¼þ²âÊÔÍø1_L5]/r6](j-e1R9] Oz7[
l(e0 SIP/2.0 100 Trying
6z#B%{_&m7V0 [last_Via:]
w5q\B'}v#c0 [last_From:];tag=[pid]
So+es1v!U6[M0 [last_To:]
51TestingÈí¼þ²âÊÔÍøU&a}/Nf [last_Call-ID:]
51TestingÈí¼þ²âÊÔÍø6EU?/K4W1a
Zj` [last_CSeq:]
51TestingÈí¼þ²âÊÔÍø'}#| \#]DBx User-Agent: ASG Switch
,G:o+Nr|0 Content-Length: [len]
p4xr?4xK0 51TestingÈí¼þ²âÊÔÍø%z4vy4k.t8E ]]>
51TestingÈí¼þ²âÊÔÍøc0P II:o6d J} </send>
O-a4s8L!Kr1MP0 51TestingÈí¼þ²âÊÔÍøgH@,I(F(q7E3\ 51TestingÈí¼þ²âÊÔÍøN!G_d s 51TestingÈí¼þ²âÊÔÍø6e(~{&Em(g7d$f? <!-- SEND 180 Ringing -->
51TestingÈí¼þ²âÊÔÍøk$cbBMV|%Pf <send retrans="500">
,Xp)Z,K |[+J8a0 <![CDATA[
51TestingÈí¼þ²âÊÔÍøV'sqWz5d4t!R'Xk M/I
cS$K0 SIP/2.0 180 Ringing
51TestingÈí¼þ²âÊÔÍøh:I3e3P;{\M/L},IP't@ [last_Via:]
51TestingÈí¼þ²âÊÔÍøj6k)j)W(s0_ [last_From:];tag=[pid]
#p [2_
QE[E1O'u0 [last_To:];tag=[pid]
51TestingÈí¼þ²âÊÔÍø5K,ZE]4D\s8h|B [last_Call-ID:]
51TestingÈí¼þ²âÊÔÍøD{!C3T!ePLB [last_CSeq:]
51TestingÈí¼þ²âÊÔÍø w]:f [V_Ug8eLhn8w.~ Contact: <sip:[local_ip]:[local_port]>
51TestingÈí¼þ²âÊÔÍø2xV
kIJ5p,B p User-Agent: ASG Switch
51TestingÈí¼þ²âÊÔÍø5v!Ex'm*R(A"eqP"|3YP(D Content-Length: [len]
:m}6Y0@
|U C?0 ]]>
51TestingÈí¼þ²âÊÔÍør+v\!P0h1J H
{ </send>
Z;] J"Fc?0 51TestingÈí¼þ²âÊÔÍøbr7rIy rxUY,HmX0 <!-- SEND 200 OK -->
N%UP+C^051TestingÈí¼þ²âÊÔÍø'Z2R$]sw <send retrans="500">
Q,nh:{
g8jO0 <![CDATA[
51TestingÈí¼þ²âÊÔÍøRpS'F&\_P0~fe/s ~P2hh4tv0 SIP/2.0 200 OK
Lz#}L%T^
zY)X:WX0 [last_Via:]
*?Y+XRp2D0 [last_From:];tag=[pid]
^z5Jj'} f#Z2^0 [last_To:];tag=[pid]
m6Z8EvF
C f0 [last_Call-ID:]
#D?A ~-N!g,iZ0 [last_CSeq:]
51TestingÈí¼þ²âÊÔÍøU+g7^W,Q3Ll Contact: <sip:[local_ip]:[local_port]>
51TestingÈí¼þ²âÊÔÍøq5|zz/O'_"C/oY User-Agent: ASG Switch
51TestingÈí¼þ²âÊÔÍø
l!T/QT9Z2D+h F!I+}'} Content-Length: [len]
51TestingÈí¼þ²âÊÔÍø&c6l9ti n1Qe51TestingÈí¼þ²âÊÔÍø
Y5[%}T6x6\
c+@f v=0
51TestingÈí¼þ²âÊÔÍø+WAAl$LF o=root 1626286936 1626286936 IN IP[local_ip_type] [local_ip]
51TestingÈí¼þ²âÊÔÍøoc&p%T-jD'\XsKc s=-
51TestingÈí¼þ²âÊÔÍø8t\w8h*E@ c=IN IP[local_ip_type] [local_ip]
E!a U+r\7dc0 t=0 0
NxDT+sZ4mL0 m=audio [auto_media_port] RTP/AVP 8 0 18 101
51TestingÈí¼þ²âÊÔÍø~b |`3M6C.@1a1[9J a=rtpmap:8 PCMA/8000
~
v5\ o;ic0 a=rtpmap:0 PCMU/8000
]5E&o'e[
q1FU0 a=rtpmap:18 G729/8000
51TestingÈí¼þ²âÊÔÍøx(yTrqop Y$N a=rtpmap:101 telephone-event/8000
51TestingÈí¼þ²âÊÔÍø%dq^EjHI)nQ6b1p a=fmtp:101 0-16
51TestingÈí¼þ²âÊÔÍøh}Y/rg iX m=video [auto_media_port+1] RTP/AVP 126 99
p}G-LK-{e(u1{Z8x-^1r0 a=rtpmap:126 H264/90000
@Q$L#Y!{0X8YK,O#^0 a=fmtp:126 profile-level-id=42e01e
&N-nl4NTe0 a=rtpmap:99 MP4V-ES/90000
9D|n,U2l P1RSE-d0 a=fmtp:99 profile-level-id=3
51TestingÈí¼þ²âÊÔÍør6eD_ IlD;Xz a=recvonly
wq)LFRt0 ]]>
bmCHX%m d}0 </send>
51TestingÈí¼þ²âÊÔÍø!B d)@M Qq+n-j9i /db2Pc$R.X|%N9k%Q0 <recv request="ACK" ptional="true" rtd="true" crlf="true">
Fxp
j:D0</recv>
oo3b5j@$T
?4hc051TestingÈí¼þ²âÊÔÍøUm,h$H5l 51TestingÈí¼þ²âÊÔÍø*d8Hn
X,}.`0f\ 51TestingÈí¼þ²âÊÔÍø1{t1y
IHgw X7X#Y <!-- Play a pre-recorded PCAP file (RTP stream) -->
N'^ ^AnPC0\ ~ V0 <nop>
-z(b&R*Y(Qo uc0 <action>
A;q T+D0m3S0 <exec play_pcap_audio="pcap/G711u.pcap"/>
-lxJ/qq:Y0 </action>
`qz1gCH0 </nop>
5X5^ Nc2eP
w:cN0 51TestingÈí¼þ²âÊÔÍørzp0h.U k_N <pause milliseconds="50000"/>
51TestingÈí¼þ²âÊÔÍøA O Qeu.bsm.ldm(] <!-- Keep the call open for a while in case the 200 is lost to be -->
51TestingÈí¼þ²âÊÔÍø:q'I7_!b
u.Z <!-- able to retransmit it if we receive the BYE again. -->
51TestingÈí¼þ²âÊÔÍø#X{
ak3Tjp"`VT OnFA.T0 <!-- definition of the response time repartition table (unit is ms) -->
51TestingÈí¼þ²âÊÔÍø#FYAU[9WA)]!E$[ZY)^mWo0 <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
51TestingÈí¼þ²âÊÔÍø@G/AJ*hl1{%LML5Z+tYqiZ0 <!-- definition of the call length repartition table (unit is ms) -->
51TestingÈí¼þ²âÊÔÍø'H)w)ND&DwQF.P|9K51TestingÈí¼þ²âÊÔÍøJJ$y"r+vN <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
51TestingÈí¼þ²âÊÔÍøO`P1[:u4|%Gc</scenario>
g
I6M[+M&ZE!TI051TestingÈí¼þ²âÊÔÍø0QY7h&v|3vT/vg51TestingÈí¼þ²âÊÔÍø geA2D.Ld|S J!j3ztestuas.csvÅäÖÃÈçÏ£º
51TestingÈí¼þ²âÊÔÍø+o?Rv'U
GI$QKSEQUENTIAL
51TestingÈí¼þ²âÊÔÍøpy5~SrqH50003;50003;[authentication username=50003 password=12345]
:z
y%l:qUrh0P![09bV#S5ZX0ÔËÐÐ״̬ÈçÏ£º
51TestingÈí¼þ²âÊÔÍøh
ty^u3`,dz5Y$ sipp -i 172.161.10.64 -p 50061 -sf reg.xml -inf testuas.csv 172.161.10.21
DVO2F7j2s {(q0prepare_pcap.c: Ignoring non UDP packet!
51TestingÈí¼þ²âÊÔÍø eB8i|7e6WBB In pcap pcap/G711u.pcap, npkts 3789
5b-hTFt'qoC0 max p kt length 180
BiKQ,u uN v+U0 base port 10546
51TestingÈí¼þ²âÊÔÍø[
b!Bce0h4b~^ Warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE = 64
-`H+W"O r d0 Resolving remote host '172.161.10.21'... Done .
r`_ Q-Ahhn+N:x0------------------------------ Scenario Screen -------- [1-9]: Change Screen --
51TestingÈí¼þ²âÊÔÍøY5F!\vhi Call-rate(length) Port Total-time Total-calls Remote-host
51TestingÈí¼þ²âÊÔÍø/Bd,DM2hS"L 1.0(0 ms)/1.000s 50061 529.52 s 150 172.161.10.21:5060(UDP)
51TestingÈí¼þ²âÊÔÍø-i
r/NB uSx
@5Dj2~?,U
P^$t}&Wg0 0 new calls during 0.950 s period 0 ms scheduler resolution
Kq0W
q*Z0 150 calls (limit 150) Peak was 150 calls, after 132 s
G;{?9V(e0 1 Running, 152 Paused, 2 Woken up
V&F7pQP.i0 0 dead call msg (discarded) 17 out-of-call msg (discarded)
*s7YIgT~6G5b{]u0 3 open sockets
51TestingÈí¼þ²âÊÔÍøYI6z3qK3[L~ 0 Total RTP pckts sent 0.000 last period RTP rate (kB/s)
51TestingÈí¼þ²âÊÔÍø-P&x8[z-};X5q3]-[!TxjHV0 Messages Retrans Timeout Unexpected-Msg
51TestingÈí¼þ²âÊÔÍø/| Ygu/gM4C REGISTER ----------> 150 1 0
:np(Mw
]c%Rumx0 100 <---------- 0 0 0 0
g0C8GW!cDV-e0 401 <---------- 150 0 0 0
{e6S'G0T_0m0 REGISTER ----------> 150 4 0
51TestingÈí¼þ²âÊÔÍø1VLn
u,\(d&K"`b 100 <---------- 0 0 0 0
51TestingÈí¼þ²âÊÔÍø1I5yl2zN8pg8t 200 <---------- 150 0 0 0
4`3qzt@0 INVITE <---------- 0 0 0 051TestingÈí¼þ²âÊÔÍø]e"M|5l(~ P6ov51TestingÈí¼þ²âÊÔÍø5{2nd~b;e9Gi7N 100 ----------> 0 0 0
3I8x _5^7C%t;J0 180 ----------> 0 0 0
2\Z&A\,nXdg7d4x0 200 ----------> 0 0 0
rH\2A#p,iw z
b)v0 ACK <---------- E-RTD1 0 0 0 0
51TestingÈí¼þ²âÊÔÍøx` k6eN:z51TestingÈí¼þ²âÊÔÍø
anK7C/QRp;m [ NOP ]
HQ;a.yc^~7R0 Pause [ 50.0s] 0 0
y$?+tL"x(I-D)K3{8~0------------------------------
Test Terminated --------------------------------
51TestingÈí¼þ²âÊÔÍøu2U\q1U7j51TestingÈí¼þ²âÊÔÍøC*|9|X"{6oi!B51TestingÈí¼þ²âÊÔÍøs&Y"U4{[
C;@0A*S----------------------------- Statistics Screen ------- [1-9]: Change Screen --
D/A;b7Ji |(V0 Start Time | 2013-08-12 15:48:11:925 1376293691.925351
51TestingÈí¼þ²âÊÔÍødS$G`'Vf Last Reset Time | 2013-08-12 15:57:00:520 1376294220.520421
d9}dR^9h0 Current Time | 2013-08-12 15:57:01:470 1376294221.470428
51TestingÈí¼þ²âÊÔÍøi6r7^-X(b%K`-------------------------+---------------------------+--------------------------
51TestingÈí¼þ²âÊÔÍø$j-|7@da/eP6rF7L Counter Name | Periodic value | Cumulative value
]h4S;l,]^0-------------------------+---------------------------+--------------------------
51TestingÈí¼þ²âÊÔÍø7Yc [9i(`0K{T Elapsed Time | 00:00:00:950 | 00:08:49:545
zN2xQeB-O8ar0 Call Rate | 0.000 cps | 0.283 cps
8w,A[-Gl@L0-------------------------+---------------------------+--------------------------
51TestingÈí¼þ²âÊÔÍøx,A-[{^.~:ZTK Incoming call created | 0 | 0
I5FW"GR``0 OutGoing call created | 0 | 150
o,wOxL*K
y.~0 Total Call created | | 150
$zJkf!G-P S `0 Current Call | 150 |
@'MOg ^R+~+B&GF0-------------------------+---------------------------+--------------------------
5hp(}l
poB-~u0 Successful call | 0 | 0
51TestingÈí¼þ²âÊÔÍø?1Afl
MXk @i4t? Failed call | 0 | 0
51TestingÈí¼þ²âÊÔÍø;e5a#C7aF]i-------------------------+---------------------------+--------------------------
51TestingÈí¼þ²âÊÔÍø`w:pdK.n Response Time 1 | 00:00:00:000 | 00:00:00:000
51TestingÈí¼þ²âÊÔÍø MOI!X-L6y*` Call Length | 00:00:00:000 | 00:00:00:000
51TestingÈí¼þ²âÊÔÍø,e6w{?:d^ {^"S------------------------------ Test Terminated --------------------------------
51TestingÈí¼þ²âÊÔÍø2S.P*t%?
cH,jun3B]8u;~;`0;f%[ ^5d5n b051TestingÈí¼þ²âÊÔÍø1k%x]3Pzr`~'yºÜÏëÖªµÀΪʲô£¿ÓÐÄÄλ¿ÉÖ¸µ¼ÏÂô £¿
+v;XYniY0r]"L(jJz&dX/H5w051TestingÈí¼þ²âÊÔÍø"Zn8p8G~/{ E:x