SIPP之invite(播放语音流)---------ZED-3
上一篇 / 下一篇 2013-07-25 20:25:50 / 个人分类:SIP
版权信息: 可以任意转载, 转载时请务必以超链接形式标明文章原文出处, 即下面的声明.
(K;NGKo$[9R n q0原文链接:http://www.51testing.com/?uid-360490-action-viewspace-itemid-849584
y#bqX-Je0
8FPrP%^9^rgYZ0 经过多天的努力,用脚本呼叫eyebeem电话,在电话端终于听到录制的语音包了,费话不多说,描述环境:
{!Z1y5p%u_'q5ak8m~0user.csv脚本:51Testing软件测试网1aKr)eWK-A]
SEQUENTIAL51Testing软件测试网}z3@a`G8w/_
50000;50010;[authentication username=50000 password=50000]51Testing软件测试网x0{M ^'j_$J
51Testing软件测试网e d t7eDfIo4~
流程如下:
o1_1]kp0
2j |/]!MG7MrT'u-E0 REGISTER ----------> SIP_server 51Testing软件测试网#hf)lR`4\}
401 <---------- SIP_server 51Testing软件测试网{5SUi:N IA%]3u
REGISTER ----------> SIP_server
!dG"JIMQs?0 200 <---------- SIP_server 51Testing软件测试网$it5k'[e
INVITE ----------> SIP_server 51Testing软件测试网?mD1g(cF*Z~m
407 <---------- SIP_server 51Testing软件测试网aK$Z1}3o@y\P
ACK ----------> SIP_server
^ B;J}]Vc,k2C3R0 INVITE ----------> SIP_server -- INVITE--------->50010(eyebeem) 51Testing软件测试网f.x Mmx1m.e
100 <---------- SIP_server---100 <---------- 50010(eyebeem) 51Testing软件测试网 B6fn!LoRv
180 <---------- SIP_server---180 <---------- 50010(eyebeem) 51Testing软件测试网ER"C$k)Oy3WR&\ XW
200 <---------- SIP_server---200 <---------- 50010(eyebeem)
[:x J h/v,bQ \+OQ0 ACK ----------> SIP_server---ACK ---------->50010(eyebeem)
;L+U*h1t/kF6z5B5x#q ux0 -----------RTP语音流(wireshark抓的语音包G711u.pcap)-----------
/[GB`j0RMy0 Pause [ 50.0s] 51Testing软件测试网 yO%OY"^M
BYE ---------->
+[H`,p1|_!t0 200 <----------
I3ku']}R;T"t2n0
n-~cttxx0脚本如下:51Testing软件测试网3F#uGyN L-b%st&z
<?xml version="1.0" encoding="ISO-8859-1" ?>
`0I2D}`W g0<!DOCTYPE scenario SYSTEM "sipp.dtd">
&a C*hO _hOqYf5L0
p;V+\7E*V6rC0<!-- This program is free software; you can redistribute it and/or -->
R`\4a8CHu0kz0<!-- modify it under the terms of the GNU General Public License as -->51Testing软件测试网;YW{p%ON)s7c
<!-- published by the Free Software Foundation; either version 2 of the-->51Testing软件测试网 qh:R"v2yR5y"Ak
<!-- License, or (at your option) any later version. -->51Testing软件测试网"O9h,dBN*N^F
<!-- -->
6?w'fR}VhC0<!-- This program is distributed in the hope that it will be useful, -->51Testing软件测试网tsH!P,A0Z(Kru
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->51Testing软件测试网mG3d0]'~;g i
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
O"v2L1W@{0<!-- GNU General Public License for more details. -->51Testing软件测试网+O0Ca"pz/ElL
<!-- -->51Testing软件测试网O;| lF0un [ x
<!-- You should have received a copy of the GNU General Public License-->51Testing软件测试网 @D0O\x,d%{
<!-- along with this program; if not, write to the -->
R?Av Za8r0<!-- Free Software Foundation, Inc., -->51Testing软件测试网J%kK cT&r
(K;NGKo$[9R n q0原文链接:http://www.51testing.com/?uid-360490-action-viewspace-itemid-849584
y#bqX-Je0
8FPrP%^9^rgYZ0 经过多天的努力,用脚本呼叫eyebeem电话,在电话端终于听到录制的语音包了,费话不多说,描述环境:
192.168.0.20是一个有注册认证的SIP服务器,服务器端口为5060;
branchc1.xml 中的50000 呼叫 eyebeem号码50010
{!Z1y5p%u_'q5ak8m~0user.csv脚本:51Testing软件测试网1aKr)eWK-A]
SEQUENTIAL51Testing软件测试网}z3@a`G8w/_
50000;50010;[authentication username=50000 password=50000]51Testing软件测试网x0{M ^'j_$J
51Testing软件测试网e d t7eDfIo4~
流程如下:
o1_1]kp0
2j |/]!MG7MrT'u-E0 REGISTER ----------> SIP_server 51Testing软件测试网#hf)lR`4\}
401 <---------- SIP_server 51Testing软件测试网{5SUi:N IA%]3u
REGISTER ----------> SIP_server
!dG"JIMQs?0 200 <---------- SIP_server 51Testing软件测试网$it5k'[e
INVITE ----------> SIP_server 51Testing软件测试网?mD1g(cF*Z~m
407 <---------- SIP_server 51Testing软件测试网aK$Z1}3o@y\P
ACK ----------> SIP_server
^ B;J}]Vc,k2C3R0 INVITE ----------> SIP_server -- INVITE--------->50010(eyebeem) 51Testing软件测试网f.x Mmx1m.e
100 <---------- SIP_server---100 <---------- 50010(eyebeem) 51Testing软件测试网 B6fn!LoRv
180 <---------- SIP_server---180 <---------- 50010(eyebeem) 51Testing软件测试网ER"C$k)Oy3WR&\ XW
200 <---------- SIP_server---200 <---------- 50010(eyebeem)
[:x J h/v,bQ \+OQ0 ACK ----------> SIP_server---ACK ---------->50010(eyebeem)
;L+U*h1t/kF6z5B5x#q ux0 -----------RTP语音流(wireshark抓的语音包G711u.pcap)-----------
/[GB`j0RMy0 Pause [ 50.0s] 51Testing软件测试网 yO%OY"^M
BYE ---------->
+[H`,p1|_!t0 200 <----------
I3ku']}R;T"t2n0
n-~cttxx0脚本如下:51Testing软件测试网3F#uGyN L-b%st&z
<?xml version="1.0" encoding="ISO-8859-1" ?>
`0I2D}`W g0<!DOCTYPE scenario SYSTEM "sipp.dtd">
&a C*hO _hOqYf5L0
p;V+\7E*V6rC0<!-- This program is free software; you can redistribute it and/or -->
R`\4a8CHu0kz0<!-- modify it under the terms of the GNU General Public License as -->51Testing软件测试网;YW{p%ON)s7c
<!-- published by the Free Software Foundation; either version 2 of the-->51Testing软件测试网 qh:R"v2yR5y"Ak
<!-- License, or (at your option) any later version. -->51Testing软件测试网"O9h,dBN*N^F
<!-- -->
6?w'fR}VhC0<!-- This program is distributed in the hope that it will be useful, -->51Testing软件测试网tsH!P,A0Z(Kru
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->51Testing软件测试网mG3d0]'~;g i
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
O"v2L1W@{0<!-- GNU General Public License for more details. -->51Testing软件测试网+O0Ca"pz/ElL
<!-- -->51Testing软件测试网O;| lF0un [ x
<!-- You should have received a copy of the GNU General Public License-->51Testing软件测试网 @D0O\x,d%{
<!-- along with this program; if not, write to the -->
R?Av Za8r0<!-- Free Software Foundation, Inc., -->51Testing软件测试网J%kK cT&r