SIPP之invite(播放语音流)---------ZED-3
上一篇 / 下一篇 2013-07-25 20:25:50 / 个人分类:SIP
版权信息: 可以任意转载, 转载时请务必以超链接形式标明文章原文出处, 即下面的声明.
*k8_2Q"db2C;a0原文链接:http://www.51testing.com/?uid-360490-action-viewspace-itemid-849584
0f"E \A{9Iw-zp051Testing软件测试网2}&m1O4dy,w/S6Ij
经过多天的努力,用脚本呼叫eyebeem电话,在电话端终于听到录制的语音包了,费话不多说,描述环境:
U^r(?Y\0user.csv脚本:
X*U)En(Od$Q0SEQUENTIAL
9B$iO]hj#z050000;50010;[authentication username=50000 password=50000]51Testing软件测试网S1B1yA om
51Testing软件测试网)h&L:I"N1Kb
流程如下:
` _qb)V G C#tg0
9[G7{9n{+XI otd0 REGISTER ----------> SIP_server 51Testing软件测试网0["T f8s'B3`
401 <---------- SIP_server
A-dG2P$WPV4zL4v0 REGISTER ----------> SIP_server 51Testing软件测试网sFW2e&w8c E
200 <---------- SIP_server
Hg4q-h.[^N6S3u0 INVITE ----------> SIP_server 51Testing软件测试网|x(d}9xb g
407 <---------- SIP_server
(uv{0I {:n0 ACK ----------> SIP_server
dJ0h]v v0 INVITE ----------> SIP_server -- INVITE--------->50010(eyebeem)
A0wO\QE-S0 100 <---------- SIP_server---100 <---------- 50010(eyebeem)
U2GdWKx%J0 180 <---------- SIP_server---180 <---------- 50010(eyebeem) 51Testing软件测试网-]K0Nk)a?*Z
200 <---------- SIP_server---200 <---------- 50010(eyebeem)51Testing软件测试网X!fC4B8R|$VJ"y
ACK ----------> SIP_server---ACK ---------->50010(eyebeem)
AB:Bm2`A(M tI/j7k3A2T0 -----------RTP语音流(wireshark抓的语音包G711u.pcap)-----------51Testing软件测试网o,Xf2n&~'j%\1\
Pause [ 50.0s]
y2O8Gm(x{T0 BYE ---------->
}P\%M^5wkG0 200 <----------
v){pbY3M?V-c7p0
`7^ @*O;I({H q~N |0脚本如下:
e?-sn+\(@)i's9S0<?xml version="1.0" encoding="ISO-8859-1" ?>
d/V I*U)J,K0<!DOCTYPE scenario SYSTEM "sipp.dtd">51Testing软件测试网6zm.r*?-S
51Testing软件测试网5La`[*E5f(c@]
<!-- This program is free software; you can redistribute it and/or -->51Testing软件测试网r6ERsq?
<!-- modify it under the terms of the GNU General Public License as -->51Testing软件测试网(T8N{|i^#o
<!-- published by the Free Software Foundation; either version 2 of the-->51Testing软件测试网B"K;kc'x;Pm
<!-- License, or (at your option) any later version. -->51Testing软件测试网'g8H[3Y9X{(u!Zb8s
<!-- -->
+u)~ S"l2B?0<!-- This program is distributed in the hope that it will be useful, -->51Testing软件测试网^/y v,F _4p)Xu
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
4ts j nvp0<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
&M5i5EE Pb9|B [0<!-- GNU General Public License for more details. -->51Testing软件测试网/b,w b9B*sO(R8\
<!-- -->
8eE.^HC2B1?0<!-- You should have received a copy of the GNU General Public License-->51Testing软件测试网%Dw Q+wCG)q
<!-- along with this program; if not, write to the -->51Testing软件测试网R2FW KW0|d;i)H J
<!-- Free Software Foundation, Inc., -->
-a`Vn:}|Y-yI4V0<!-- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -->
VR8c&Z7] B,m0<!-- -->
U8\|q:@Y a0<!-- Sipp default 'branchc' scenario. -->
)Ic*a-O_ d3uRh \0<!-- -->51Testing软件测试网2T6HwI7jNvN
<!-- 首先发送SIP注册消息,Register。里面的From与To是注册的号码 -->51Testing软件测试网/J|o*k"C.a2`
<scenario name="branch_client">
F g,g pP{}L6i0 <send retrans="500">
7G5w'MT,]KM0 <![CDATA[51Testing软件测试网n*s'iY7NU
51Testing软件测试网_0i+lHrh
REGISTER sip:[remote_ip] SIP/2.0
$]:i%U@p!R0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]51Testing软件测试网nW.~$\ `v/l#E
From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number];rport
5jupLXMq0 To: [field0] <sip:[field0]@[remote_ip]:[remote_port]>51Testing软件测试网 p%Yp-?} T
Call-ID: [call_id]
:J6A}.NZ!i-l*\{0 CSeq: 1 REGISTER
Md1?&kdJhI ufP0 Contact: sip:[field0]@[local_ip]:[local_port]51Testing软件测试网@'QXN4bb
Content-Length: 051Testing软件测试网3LYD nix
Expires: 300
k y,?/~ P(d#|0 ]]>51Testing软件测试网1A!VM'm/Ak
</send>51Testing软件测试网 QA5ZM@Pv(Z/V
A4MN-B;oq0w&b0 <recv response="100" ptional="true">
3t%C#izml|&~zk0 </recv>51Testing软件测试网&Cif+`D4\iC"P
7?0M/e}K8YR OS0 <!-- SIPp会收到来自AST要求验证的401 消息体,Recv意思为Receive,接收到来自AST的401要求验证的消息,Next为如果收到401,那么转至Label为1的地方进行操作 -->51Testing软件测试网5U?:{jh$^%g
<recv response="401" auth="true" next="1">
HI:\u(u:v0 </recv>
`!~2x yi\e-{0D#e051Testing软件测试网 Jtn)KSYD
<!-- send invite with authentication messages -->
/K:?3Whl&|0 <!-- 开始发送Register消息,里面将把验证的密码消息发送给对方,在消息体里面是抓不到密码消息的,而且已经被md5方式加密过。-->
y v QT.d1[0
z d0c Zh!LL0 <label id="1"/>51Testing软件测试网5~I3j%R O-n
<send retrans="500">51Testing软件测试网A1^]siZ6P'@/[-vIA
<![CDATA[
I G f7`4o5at`0 51Testing软件测试网|/AC*qLTzs
REGISTER sip:[field0]@[remote_ip]:[remote_port] SIP/2.0
jc#p/m6DdMg0 Via: SIP/2.0/[transport] [local_ip]:[local_port]
o7b}|J3c0 From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number];rport51Testing软件测试网X9QbPs%F5y
To: [field0] <sip:[field0]@[remote_ip]:[remote_port]>51Testing软件测试网1T|*e:k,D g"d oi#w S
Call-ID: [call_id]51Testing软件测试网2_N/R5m/H&Q(s{
CSeq: 2 REGISTER51Testing软件测试网_4[-s\ s _7h9R
Contact: sip:[field0]@[local_ip]:[local_port]
*}-K2E7j#AW [b0 [field2]
)d voQ I:c\d p0 Content-Length: [len]51Testing软件测试网CXF1a,@j~U
Expires: 360051Testing软件测试网_j/Xw!}'I4a6k
]]>51Testing软件测试网3ck&\tf
</send>51Testing软件测试网s+sJ?0U q:E$L
51Testing软件测试网} @&L,U].L H
<recv response="100" ptional="true">
Ul|!zm~b,vn0 </recv>51Testing软件测试网_/L%]Qc$r
51Testing软件测试网3S|t'YlR
<!-- 收到来自AST的200 ACK消息后,系统转至等待1000ms,或者可以直接去掉该设置 -->
O6j}\+_ Z0
\'wL*i)KA0 <recv response="200" next="2">51Testing软件测试网7LB6cH5R;l$d%Q4]I
</recv>51Testing软件测试网IY0{:fd?
c3]:v6l2h5J p]0 <label id="2"/>51Testing软件测试网?z/B ]l:?X
<pause milliseconds="1000"/>
_}G6b$P2F/Es%{,S0
1u_6f5SIu/l0 51Testing软件测试网5_` fQeD&xQp
<send retrans="500">
C Y]d1f7U {6NR0 <![CDATA[
[/Lz(Vcb0
s Qh(V H`g0 INVITE sip:[field1]@[remote_ip]:[remote_port] SIP/2.0
7FHpv6T A/{0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
r+vG|*ia-h%k!b0 From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number]51Testing软件测试网0I%E rA;r_D.p{
To: [field1] <sip:[field1]@[remote_ip]:[remote_port]>
?8B:O r_ O`0 Call-ID: [call_id]51Testing软件测试网}3b%Wi-x;eE
CSeq: 1 INVITE51Testing软件测试网%V D1So)a
Contact: sip:[field0]@[local_ip]:[local_port]51Testing软件测试网Z?h)`B+p"N4p
Max-Forwards: 7051Testing软件测试网FIahu%AZX
Subject: Performance Test51Testing软件测试网I.D k(_#};nF*|
Content-Type: application/sdp51Testing软件测试网:n QCE^Lqp+b
Content-Length: [len]
_ P mf+A b7?0
RJ4Wz0H9U|!k0 v=051Testing软件测试网cl@9nq3Q)d2`
o=[local_ip] 53655765 2353687637 IN IP[local_ip_type] [local_ip]51Testing软件测试网3H*G2r^v+^R Y9v
s=-51Testing软件测试网Qd/H#Q/N(A?
c=IN IP[local_ip_type] [local_ip]51Testing软件测试网L[4M*m E/C
t=0 051Testing软件测试网.qR^"sm/|b5[
m=audio [auto_media_port] RTP/AVP 8 0 10151Testing软件测试网E*F} FAG
a=rtpmap:8 PCMA/800051Testing软件测试网hWHcW? O^+g
a=rtpmap:0 PCMU/8000
T-i"f'v!I(|0qZd0 a=rtpmap:101 telephone-event/800051Testing软件测试网6F,eW)[u3M&??
a=fmtp:101 0-16
*_ ??.aF/{K0 a=recvonly51Testing软件测试网@!Ab5`BQ
]]>51Testing软件测试网gN#Ozwo6eQW
</send>51Testing软件测试网d8yD'YWW5x7ag+J
%BD/h Dajh-Fuz0 <recv response="407" auth="true">51Testing软件测试网QjYN`2R
</recv>51Testing软件测试网vW-bf c4k0e
s$M sJS0} }0 <!-- By adding rrs="true" (Record Route Sets), the route sets -->
,w rx4~C0 <!-- are saved and used for following messages sent. Useful to test-->51Testing软件测试网M9d] q_o
<!-- against stateful SIP proxies/B2BUAs. -->
.R_0F6R;e)@N^o DY X0 <!-- Packet lost can be simulated in any send/recv message by -->
-sz)RJ0W1P.}C[0 <!-- by adding the 'lost = "10"'. Value can be [1-100] percent.-->
S$Et6q]eZ? V,O0 <send>51Testing软件测试网 H7{gt+u~,t
<![CDATA[51Testing软件测试网mhf9eKT-z!G
51Testing软件测试网um-HrTT/ro
ACK sip:[field1]@[remote_ip]:[remote_port] SIP/2.0
\nB'UHOJlz:[:o0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]51Testing软件测试网[ [)V-i])A
From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number]51Testing软件测试网gHB|0iH7Y+t
To: [field1] <sip:[field1]@[remote_ip]:[remote_port]>[peer_tag_param]
M#PDv)j{9V0 Call-ID: [call_id]51Testing软件测试网 I.W3wh~2A"O
CSeq: 1 ACK51Testing软件测试网*pn7`;B5??9Ot
Contact: sip:[field0]@[local_ip]:[local_port]
}D"h`3q0 Max-Forwards: 70
m FV_rH|0 Subject: Performance Test
+xh!f y*Q H1`k0 Content-Length: 0
3\+K\5w}0 ]]>51Testing软件测试网[^K:g7s,n\~
</send>
+`'Ec:y|b2D3|X#B D051Testing软件测试网^+oz0T;@f}/d
<send retrans="500">51Testing软件测试网Ae9h {Z\
<![CDATA[
;{}/`.a'i7^*uHK;y0
rSn]/A9Poe+Q0 INVITE sip:[field1]@[remote_ip]:[remote_port] SIP/2.051Testing软件测试网VU]%G2o0C h5B6fp
Via: SIP/2.0/[transport] [local_ip]:[local_port]51Testing软件测试网jHHA5sB
From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number]
xRd'b^^g[}v g8q#I0 To: [field1] <sip:[field1]@[remote_ip]:[remote_port]>
J[8M1IJU'n0 Call-ID: [call_id]
g1j5Zn)q.r0 CSeq: 2 INVITE51Testing软件测试网5O/x"G C7`s
Contact: sip:[field0]@[local_ip]:[local_port]
#EJV na~ r0 [field2]
%m3Mp1x(U/m0 Max-Forwards: 70
_n+l i2G*t"k){%j0 Subject: Performance Test
$BAR JqB t|Zw0 Content-Type: application/sdp51Testing软件测试网e;[kEK,`
Content-Length: [len]51Testing软件测试网_;J9] mbT;e
ax[1e$e e a0 v=051Testing软件测试网Hv#FI3`3W9W0k^_
o=[local_ip] 53655765 2353687637 IN IP[local_ip_type] [local_ip]
/H7wwC f xJ0 s=-51Testing软件测试网)j*} R_)c ? ?
c=IN IP[local_ip_type] [local_ip]51Testing软件测试网-W5Y$hO2M\V'tm
t=0 0
K/Z0l:g`.E-B0 m=audio [auto_media_port] RTP/AVP 8 0 101
.J6n*w2t&S0 a=rtpmap:8 PCMA/8000
as"Xx~+G_ArU0 a=rtpmap:0 PCMU/8000
^ Xt?*J1Nm0 a=rtpmap:101 telephone-event/800051Testing软件测试网q:S*H6_h m
a=fmtp:101 0-16
}"|%^6a}:\#c7KD0 a=recvonly51Testing软件测试网g4b!hT:HMp3_7\[2\y
]]>51Testing软件测试网 VS'o,H^uw
</send>
0_9?.O f;sL {0
2pO h&E%g&xj;e O0 <recv response="100" ptional="true">
;~{CD|U!~KX0 </recv>
/ic u'T mT+~p051Testing软件测试网 Py_Z7b
<recv response="183" ptional="true">
p C!wg Q#BX2d0 </recv>51Testing软件测试网,J |6Cg`-[+C]
51Testing软件测试网:]g%h"a*U3T
<recv response="180" ptional="true">51Testing软件测试网l4A eX7UvS
</recv>51Testing软件测试网rS%z6R"mA]M
51Testing软件测试网,@rpkP [!b[Sy
<recv response="200" rtd="true">
KYg!So^0 </recv>51Testing软件测试网 e%g2fC*z2U0PJ
51Testing软件测试网s-x8Xr&~B
<!-- Packet lost can be simulated in any send/recv message by -->
p3~3] mk(@ T,TU0 <!-- by adding the 'lost = "10"'. Value can be [1-100] percent. -->51Testing软件测试网;x`~h;R}E B
<send>
*Jeh;ss Y$aDr0 <![CDATA[51Testing软件测试网ph;QZ:H!vs2V\s
F S{TJ({~s0 ACK sip:[field1]@[remote_ip]:[remote_port] SIP/2.051Testing软件测试网_2` b2nr
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]51Testing软件测试网~b'Z~.KL,M
From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number]
XF/QM fc(w0 To: [field1] <sip:[field1]@[remote_ip]:[remote_port]>[peer_tag_param]51Testing软件测试网:ejw BZ'u%a"Q D
Call-ID: [call_id]51Testing软件测试网OKTYCZ{U
CSeq: 2 ACK
}*Wt+f H:ndhkP0 Contact: sip:[field0]@[local_ip]:[local_port]51Testing软件测试网#fx6`m0SP
Max-Forwards: 7051Testing软件测试网.GDo0Bz SV
Subject: Performance Test
n S'Y]yK0 Content-Length: 051Testing软件测试网,g5g[9Oz/I3a:~2J.`
]]>51Testing软件测试网N?4ToT)d8L
</send>51Testing软件测试网bU*C?x f0{ ET-S&V
'Z0_cEnZ0 <!-- Play a pre-recorded PCAP file (RTP stream) -->51Testing软件测试网-WY*Pp3U(? J(_O
<nop>
C Nx"c#|%@0 <action>51Testing软件测试网e{9y1O%K;G CABG1x
<exec play_pcap_audio="pcap/G711u.pcap"/>51Testing软件测试网E h!f zQs-o q,U
</action>51Testing软件测试网d E4c2S#i1T
</nop>
'`,X| E#N0
Z Ox7E d*?;N{051Testing软件测试网5uE1C1B&O2[3Nw0L
<!-- Pause 8 seconds, which is approximately the duration of the-->
.eBQJ4Yt0 <!-- PCAP file -->51Testing软件测试网RCGw7k b
<pause milliseconds="50000"/>
(D'AP [(Pb1I0
?,@f:k,YM]zb0 51Testing软件测试网L p3JO-O5Q'v
<!-- The 'crlf' option inserts a blank line in the statistics report.-->
bM&SC Si0 <send retrans="500">51Testing软件测试网[#\ T&ZR|g'U*K C
<![CDATA[
*W!k%YA+[N$f0
0_b@~2neDUq0 BYE sip:[field1]@[remote_ip]:[remote_port] SIP/2.051Testing软件测试网` O QYyy
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]51Testing软件测试网#g/qdS R~)Y/A
From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number]51Testing软件测试网8nA(E R0J8_%~z
To: [field1] <sip:[field1]@[remote_ip]:[remote_port]>[peer_tag_param]51Testing软件测试网N ?8A5padF b z
Call-ID: [call_id]
t.laq"eFq K0 CSeq: 2 BYE
3vs8Ta}7F-O4J v/H0 Contact: sip:[field0]@[local_ip]:[local_port]
#uZ2E W/h0 Max-Forwards: 70
y w'k'n2i R5o0 Subject: Performance Test51Testing软件测试网@*N/V]Y.x}
Content-Length: 0
p8eM"h:Z0 ]]>51Testing软件测试网2Cxfa i.d
</send>51Testing软件测试网.yt)R7~/S@2xR]2g
51Testing软件测试网v/j I;`v
<recv response="200" crlf="true">
\^ S1HE0 </recv>
qT ic#otC*Y/E051Testing软件测试网)S%L1|:|L-^ j
<pause milliseconds="5000"/>51Testing软件测试网I/j2LH| r-P
51Testing软件测试网*q#x(U{mS#l
51Testing软件测试网"a U#qm$~w+H]
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>51Testing软件测试网CL\vE
51Testing软件测试网;D8|1Mz+J/kS8b
<!-- definition of the call length repartition table (unit is ms) -->51Testing软件测试网 i`{Q(]!N/Vf#I
*k8_2Q"db2C;a0原文链接:http://www.51testing.com/?uid-360490-action-viewspace-itemid-849584
0f"E \A{9Iw-zp051Testing软件测试网2}&m1O4dy,w/S6Ij
经过多天的努力,用脚本呼叫eyebeem电话,在电话端终于听到录制的语音包了,费话不多说,描述环境:
192.168.0.20是一个有注册认证的SIP服务器,服务器端口为5060;
branchc1.xml 中的50000 呼叫 eyebeem号码50010
U^r(?Y\0user.csv脚本:
X*U)En(Od$Q0SEQUENTIAL
9B$iO]hj#z050000;50010;[authentication username=50000 password=50000]51Testing软件测试网S1B1yA om
51Testing软件测试网)h&L:I"N1Kb
流程如下:
` _qb)V G C#tg0
9[G7{9n{+XI otd0 REGISTER ----------> SIP_server 51Testing软件测试网0["T f8s'B3`
401 <---------- SIP_server
A-dG2P$WPV4zL4v0 REGISTER ----------> SIP_server 51Testing软件测试网sFW2e&w8c E
200 <---------- SIP_server
Hg4q-h.[^N6S3u0 INVITE ----------> SIP_server 51Testing软件测试网|x(d}9xb g
407 <---------- SIP_server
(uv{0I {:n0 ACK ----------> SIP_server
dJ0h]v v0 INVITE ----------> SIP_server -- INVITE--------->50010(eyebeem)
A0wO\QE-S0 100 <---------- SIP_server---100 <---------- 50010(eyebeem)
U2GdWKx%J0 180 <---------- SIP_server---180 <---------- 50010(eyebeem) 51Testing软件测试网-]K0Nk)a?*Z
200 <---------- SIP_server---200 <---------- 50010(eyebeem)51Testing软件测试网X!fC4B8R|$VJ"y
ACK ----------> SIP_server---ACK ---------->50010(eyebeem)
AB:Bm2`A(M tI/j7k3A2T0 -----------RTP语音流(wireshark抓的语音包G711u.pcap)-----------51Testing软件测试网o,Xf2n&~'j%\1\
Pause [ 50.0s]
y2O8Gm(x{T0 BYE ---------->
}P\%M^5wkG0 200 <----------
v){pbY3M?V-c7p0
`7^ @*O;I({H q~N |0脚本如下:
e?-sn+\(@)i's9S0<?xml version="1.0" encoding="ISO-8859-1" ?>
d/V I*U)J,K0<!DOCTYPE scenario SYSTEM "sipp.dtd">51Testing软件测试网6zm.r*?-S
51Testing软件测试网5La`[*E5f(c@]
<!-- This program is free software; you can redistribute it and/or -->51Testing软件测试网r6ERsq?
<!-- modify it under the terms of the GNU General Public License as -->51Testing软件测试网(T8N{|i^#o
<!-- published by the Free Software Foundation; either version 2 of the-->51Testing软件测试网B"K;kc'x;Pm
<!-- License, or (at your option) any later version. -->51Testing软件测试网'g8H[3Y9X{(u!Zb8s
<!-- -->
+u)~ S"l2B?0<!-- This program is distributed in the hope that it will be useful, -->51Testing软件测试网^/y v,F _4p)Xu
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
4ts j nvp0<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
&M5i5EE Pb9|B [0<!-- GNU General Public License for more details. -->51Testing软件测试网/b,w b9B*sO(R8\
<!-- -->
8eE.^HC2B1?0<!-- You should have received a copy of the GNU General Public License-->51Testing软件测试网%Dw Q+wCG)q
<!-- along with this program; if not, write to the -->51Testing软件测试网R2FW KW0|d;i)H J
<!-- Free Software Foundation, Inc., -->
-a`Vn:}|Y-yI4V0<!-- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -->
VR8c&Z7] B,m0<!-- -->
U8\|q:@Y a0<!-- Sipp default 'branchc' scenario. -->
)Ic*a-O_ d3uRh \0<!-- -->51Testing软件测试网2T6HwI7jNvN
<!-- 首先发送SIP注册消息,Register。里面的From与To是注册的号码 -->51Testing软件测试网/J|o*k"C.a2`
<scenario name="branch_client">
F g,g pP{}L6i0 <send retrans="500">
7G5w'MT,]KM0 <![CDATA[51Testing软件测试网n*s'iY7NU
51Testing软件测试网_0i+lHrh
REGISTER sip:[remote_ip] SIP/2.0
$]:i%U@p!R0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]51Testing软件测试网nW.~$\ `v/l#E
From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number];rport
5jupLXMq0 To: [field0] <sip:[field0]@[remote_ip]:[remote_port]>51Testing软件测试网 p%Yp-?} T
Call-ID: [call_id]
:J6A}.NZ!i-l*\{0 CSeq: 1 REGISTER
Md1?&kdJhI ufP0 Contact: sip:[field0]@[local_ip]:[local_port]51Testing软件测试网@'QXN4bb
Content-Length: 051Testing软件测试网3LYD nix
Expires: 300
k y,?/~ P(d#|0 ]]>51Testing软件测试网1A!VM'm/Ak
</send>51Testing软件测试网 QA5ZM@Pv(Z/V
A4MN-B;oq0w&b0 <recv response="100" ptional="true">
3t%C#izml|&~zk0 </recv>51Testing软件测试网&Cif+`D4\iC"P
7?0M/e}K8YR OS0 <!-- SIPp会收到来自AST要求验证的401 消息体,Recv意思为Receive,接收到来自AST的401要求验证的消息,Next为如果收到401,那么转至Label为1的地方进行操作 -->51Testing软件测试网5U?:{jh$^%g
<recv response="401" auth="true" next="1">
HI:\u(u:v0 </recv>
`!~2x yi\e-{0D#e051Testing软件测试网 Jtn)KSYD
<!-- send invite with authentication messages -->
/K:?3Whl&|0 <!-- 开始发送Register消息,里面将把验证的密码消息发送给对方,在消息体里面是抓不到密码消息的,而且已经被md5方式加密过。-->
y v QT.d1[0
z d0c Zh!LL0 <label id="1"/>51Testing软件测试网5~I3j%R O-n
<send retrans="500">51Testing软件测试网A1^]siZ6P'@/[-vIA
<![CDATA[
I G f7`4o5at`0 51Testing软件测试网|/AC*qLTzs
REGISTER sip:[field0]@[remote_ip]:[remote_port] SIP/2.0
jc#p/m6DdMg0 Via: SIP/2.0/[transport] [local_ip]:[local_port]
o7b}|J3c0 From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number];rport51Testing软件测试网X9QbPs%F5y
To: [field0] <sip:[field0]@[remote_ip]:[remote_port]>51Testing软件测试网1T|*e:k,D g"d oi#w S
Call-ID: [call_id]51Testing软件测试网2_N/R5m/H&Q(s{
CSeq: 2 REGISTER51Testing软件测试网_4[-s\ s _7h9R
Contact: sip:[field0]@[local_ip]:[local_port]
*}-K2E7j#AW [b0 [field2]
)d voQ I:c\d p0 Content-Length: [len]51Testing软件测试网CXF1a,@j~U
Expires: 360051Testing软件测试网_j/Xw!}'I4a6k
]]>51Testing软件测试网3ck&\tf
</send>51Testing软件测试网s+sJ?0U q:E$L
51Testing软件测试网} @&L,U].L H
<recv response="100" ptional="true">
Ul|!zm~b,vn0 </recv>51Testing软件测试网_/L%]Qc$r
51Testing软件测试网3S|t'YlR
<!-- 收到来自AST的200 ACK消息后,系统转至等待1000ms,或者可以直接去掉该设置 -->
O6j}\+_ Z0
\'wL*i)KA0 <recv response="200" next="2">51Testing软件测试网7LB6cH5R;l$d%Q4]I
</recv>51Testing软件测试网IY0{:fd?
c3]:v6l2h5J p]0 <label id="2"/>51Testing软件测试网?z/B ]l:?X
<pause milliseconds="1000"/>
_}G6b$P2F/Es%{,S0
1u_6f5SIu/l0 51Testing软件测试网5_` fQeD&xQp
<send retrans="500">
C Y]d1f7U {6NR0 <![CDATA[
[/Lz(Vcb0
s Qh(V H`g0 INVITE sip:[field1]@[remote_ip]:[remote_port] SIP/2.0
7FHpv6T A/{0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
r+vG|*ia-h%k!b0 From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number]51Testing软件测试网0I%E rA;r_D.p{
To: [field1] <sip:[field1]@[remote_ip]:[remote_port]>
?8B:O r_ O`0 Call-ID: [call_id]51Testing软件测试网}3b%Wi-x;eE
CSeq: 1 INVITE51Testing软件测试网%V D1So)a
Contact: sip:[field0]@[local_ip]:[local_port]51Testing软件测试网Z?h)`B+p"N4p
Max-Forwards: 7051Testing软件测试网FIahu%AZX
Subject: Performance Test51Testing软件测试网I.D k(_#};nF*|
Content-Type: application/sdp51Testing软件测试网:n QCE^Lqp+b
Content-Length: [len]
_ P mf+A b7?0
RJ4Wz0H9U|!k0 v=051Testing软件测试网cl@9nq3Q)d2`
o=[local_ip] 53655765 2353687637 IN IP[local_ip_type] [local_ip]51Testing软件测试网3H*G2r^v+^R Y9v
s=-51Testing软件测试网Qd/H#Q/N(A?
c=IN IP[local_ip_type] [local_ip]51Testing软件测试网L[4M*m E/C
t=0 051Testing软件测试网.qR^"sm/|b5[
m=audio [auto_media_port] RTP/AVP 8 0 10151Testing软件测试网E*F} FAG
a=rtpmap:8 PCMA/800051Testing软件测试网hWHcW? O^+g
a=rtpmap:0 PCMU/8000
T-i"f'v!I(|0qZd0 a=rtpmap:101 telephone-event/800051Testing软件测试网6F,eW)[u3M&??
a=fmtp:101 0-16
*_ ??.aF/{K0 a=recvonly51Testing软件测试网@!Ab5`BQ
]]>51Testing软件测试网gN#Ozwo6eQW
</send>51Testing软件测试网d8yD'YWW5x7ag+J
%BD/h Dajh-Fuz0 <recv response="407" auth="true">51Testing软件测试网QjYN`2R
</recv>51Testing软件测试网vW-bf c4k0e
s$M sJS0} }0 <!-- By adding rrs="true" (Record Route Sets), the route sets -->
,w rx4~C0 <!-- are saved and used for following messages sent. Useful to test-->51Testing软件测试网M9d] q_o
<!-- against stateful SIP proxies/B2BUAs. -->
.R_0F6R;e)@N^o DY X0 <!-- Packet lost can be simulated in any send/recv message by -->
-sz)RJ0W1P.}C[0 <!-- by adding the 'lost = "10"'. Value can be [1-100] percent.-->
S$Et6q]eZ? V,O0 <send>51Testing软件测试网 H7{gt+u~,t
<![CDATA[51Testing软件测试网mhf9eKT-z!G
51Testing软件测试网um-HrTT/ro
ACK sip:[field1]@[remote_ip]:[remote_port] SIP/2.0
\nB'UHOJlz:[:o0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]51Testing软件测试网[ [)V-i])A
From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number]51Testing软件测试网gHB|0iH7Y+t
To: [field1] <sip:[field1]@[remote_ip]:[remote_port]>[peer_tag_param]
M#PDv)j{9V0 Call-ID: [call_id]51Testing软件测试网 I.W3wh~2A"O
CSeq: 1 ACK51Testing软件测试网*pn7`;B5??9Ot
Contact: sip:[field0]@[local_ip]:[local_port]
}D"h`3q0 Max-Forwards: 70
m FV_rH|0 Subject: Performance Test
+xh!f y*Q H1`k0 Content-Length: 0
3\+K\5w}0 ]]>51Testing软件测试网[^K:g7s,n\~
</send>
+`'Ec:y|b2D3|X#B D051Testing软件测试网^+oz0T;@f}/d
<send retrans="500">51Testing软件测试网Ae9h {Z\
<![CDATA[
;{}/`.a'i7^*uHK;y0
rSn]/A9Poe+Q0 INVITE sip:[field1]@[remote_ip]:[remote_port] SIP/2.051Testing软件测试网VU]%G2o0C h5B6fp
Via: SIP/2.0/[transport] [local_ip]:[local_port]51Testing软件测试网jHHA5sB
From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number]
xRd'b^^g[}v g8q#I0 To: [field1] <sip:[field1]@[remote_ip]:[remote_port]>
J[8M1IJU'n0 Call-ID: [call_id]
g1j5Zn)q.r0 CSeq: 2 INVITE51Testing软件测试网5O/x"G C7`s
Contact: sip:[field0]@[local_ip]:[local_port]
#EJV na~ r0 [field2]
%m3Mp1x(U/m0 Max-Forwards: 70
_n+l i2G*t"k){%j0 Subject: Performance Test
$BAR JqB t|Zw0 Content-Type: application/sdp51Testing软件测试网e;[kEK,`
Content-Length: [len]51Testing软件测试网_;J9] mbT;e
ax[1e$e e a0 v=051Testing软件测试网Hv#FI3`3W9W0k^_
o=[local_ip] 53655765 2353687637 IN IP[local_ip_type] [local_ip]
/H7wwC f xJ0 s=-51Testing软件测试网)j*} R_)c ? ?
c=IN IP[local_ip_type] [local_ip]51Testing软件测试网-W5Y$hO2M\V'tm
t=0 0
K/Z0l:g`.E-B0 m=audio [auto_media_port] RTP/AVP 8 0 101
.J6n*w2t&S0 a=rtpmap:8 PCMA/8000
as"Xx~+G_ArU0 a=rtpmap:0 PCMU/8000
^ Xt?*J1Nm0 a=rtpmap:101 telephone-event/800051Testing软件测试网q:S*H6_h m
a=fmtp:101 0-16
}"|%^6a}:\#c7KD0 a=recvonly51Testing软件测试网g4b!hT:HMp3_7\[2\y
]]>51Testing软件测试网 VS'o,H^uw
</send>
0_9?.O f;sL {0
2pO h&E%g&xj;e O0 <recv response="100" ptional="true">
;~{CD|U!~KX0 </recv>
/ic u'T mT+~p051Testing软件测试网 Py_Z7b
<recv response="183" ptional="true">
p C!wg Q#BX2d0 </recv>51Testing软件测试网,J |6Cg`-[+C]
51Testing软件测试网:]g%h"a*U3T
<recv response="180" ptional="true">51Testing软件测试网l4A eX7UvS
</recv>51Testing软件测试网rS%z6R"mA]M
51Testing软件测试网,@rpkP [!b[Sy
<recv response="200" rtd="true">
KYg!So^0 </recv>51Testing软件测试网 e%g2fC*z2U0PJ
51Testing软件测试网s-x8Xr&~B
<!-- Packet lost can be simulated in any send/recv message by -->
p3~3] mk(@ T,TU0 <!-- by adding the 'lost = "10"'. Value can be [1-100] percent. -->51Testing软件测试网;x`~h;R}E B
<send>
*Jeh;ss Y$aDr0 <![CDATA[51Testing软件测试网ph;QZ:H!vs2V\s
F S{TJ({~s0 ACK sip:[field1]@[remote_ip]:[remote_port] SIP/2.051Testing软件测试网_2` b2nr
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]51Testing软件测试网~b'Z~.KL,M
From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number]
XF/QM fc(w0 To: [field1] <sip:[field1]@[remote_ip]:[remote_port]>[peer_tag_param]51Testing软件测试网:ejw BZ'u%a"Q D
Call-ID: [call_id]51Testing软件测试网OKTYCZ{U
CSeq: 2 ACK
}*Wt+f H:ndhkP0 Contact: sip:[field0]@[local_ip]:[local_port]51Testing软件测试网#fx6`m0SP
Max-Forwards: 7051Testing软件测试网.GDo0Bz SV
Subject: Performance Test
n S'Y]yK0 Content-Length: 051Testing软件测试网,g5g[9Oz/I3a:~2J.`
]]>51Testing软件测试网N?4ToT)d8L
</send>51Testing软件测试网bU*C?x f0{ ET-S&V
'Z0_cEnZ0 <!-- Play a pre-recorded PCAP file (RTP stream) -->51Testing软件测试网-WY*Pp3U(? J(_O
<nop>
C Nx"c#|%@0 <action>51Testing软件测试网e{9y1O%K;G CABG1x
<exec play_pcap_audio="pcap/G711u.pcap"/>51Testing软件测试网E h!f zQs-o q,U
</action>51Testing软件测试网d E4c2S#i1T
</nop>
'`,X| E#N0
Z Ox7E d*?;N{051Testing软件测试网5uE1C1B&O2[3Nw0L
<!-- Pause 8 seconds, which is approximately the duration of the-->
.eBQJ4Yt0 <!-- PCAP file -->51Testing软件测试网RCGw7k b
<pause milliseconds="50000"/>
(D'AP [(Pb1I0
?,@f:k,YM]zb0 51Testing软件测试网L p3JO-O5Q'v
<!-- The 'crlf' option inserts a blank line in the statistics report.-->
bM&SC Si0 <send retrans="500">51Testing软件测试网[#\ T&ZR|g'U*K C
<![CDATA[
*W!k%YA+[N$f0
0_b@~2neDUq0 BYE sip:[field1]@[remote_ip]:[remote_port] SIP/2.051Testing软件测试网` O QYyy
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]51Testing软件测试网#g/qdS R~)Y/A
From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number]51Testing软件测试网8nA(E R0J8_%~z
To: [field1] <sip:[field1]@[remote_ip]:[remote_port]>[peer_tag_param]51Testing软件测试网N ?8A5padF b z
Call-ID: [call_id]
t.laq"eFq K0 CSeq: 2 BYE
3vs8Ta}7F-O4J v/H0 Contact: sip:[field0]@[local_ip]:[local_port]
#uZ2E W/h0 Max-Forwards: 70
y w'k'n2i R5o0 Subject: Performance Test51Testing软件测试网@*N/V]Y.x}
Content-Length: 0
p8eM"h:Z0 ]]>51Testing软件测试网2Cxfa i.d
</send>51Testing软件测试网.yt)R7~/S@2xR]2g
51Testing软件测试网v/j I;`v
<recv response="200" crlf="true">
\^ S1HE0 </recv>
qT ic#otC*Y/E051Testing软件测试网)S%L1|:|L-^ j
<pause milliseconds="5000"/>51Testing软件测试网I/j2LH| r-P
51Testing软件测试网*q#x(U{mS#l
51Testing软件测试网"a U#qm$~w+H]
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>51Testing软件测试网CL\vE
51Testing软件测试网;D8|1Mz+J/kS8b
<!-- definition of the call length repartition table (unit is ms) -->51Testing软件测试网 i`{Q(]!N/Vf#I