SIPP之认证注册---------ZED-3
上一篇 / 下一篇 2013-07-20 10:01:39 / 个人分类:SIP
版权信息: 可以任意转载, 转载时请务必以超链接形式标明文章原文出处, 即下面的声明.51Testing软件测试网$P&E'GE)[
原文链接:http://www.51testing.com/index.php?uid-360490-action-viewspace-itemid-849354
I;@/Ux2e^051Testing软件测试网nNf_,L&\
在经历了10天的挣扎之后,注册消息终于成功了。
原文链接:http://www.51testing.com/index.php?uid-360490-action-viewspace-itemid-849354
I;@/Ux2e^051Testing软件测试网nNf_,L&\
在经历了10天的挣扎之后,注册消息终于成功了。
最新的版本3.3试验注册有问题,请看http://www.51testing.com/index.php?uid-360490-action-viewspace-itemid-849076,我相信在不久这个BUG会修复的。51Testing软件测试网~f.r7mqz-nSe L
3U0Uej/H Er3R0
? O+U$? H0EhD0
/eG3gCK0
7c/Q-rt9@1mqc \0
\kEBE4p0S}0
eRMrij9q^_(z0
aD V&d@6Un-p$Y0
6}R Qm5hO&e]t7V0
Q7nh%b}2P0
ole`s/{1Gjj0
:{c&XT.b.k1[s0
QdT'f1[6VM+P0
3U0Uej/H Er3R0
环境描述如下:
192.168.0.20是一个有注册认证的SIP服务器,服务器端口为5060;
192.168.0.101是我在windows安装的cygwin软件后测试机器;
51Testing软件测试网]m(g1m`${S
sipp版本: SIPp v3.2-TLS-PCAP, version unknown, built Jul 17 2013, 21:50:11
51Testing软件测试网B2aKxJ3Qc @
? O+U$? H0EhD0
/eG3gCK0
注册代码如下:
7c/Q-rt9@1mqc \0
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
51Testing软件测试网C2aX"g!H6ca
<!-- This program is free software; you can redistribute it and/or -->
<!-- modify it under the terms of the GNU General Public License as -->
<!-- published by the Free Software Foundation; either version 2 of the -->
<!-- License, or (at your option) any later version. -->
<!-- -->
<!-- This program is distributed in the hope that it will be useful, -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
<!-- GNU General Public License for more details. -->
<!-- -->
<!-- You should have received a copy of the GNU General Public License -->
<!-- along with this program; if not, write to the -->
<!-- Free Software Foundation, Inc., -->
<!-- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -->
<!-- -->
<!-- Sipp default 'branchc' scenario. -->
<!-- -->
<!-- 首先发送SIP注册消息,Register。里面的From与To是注册的号码 -->
<scenario name="branch_client">
<send retrans="500">
<![CDATA[
REGISTER sip:[remote_ip] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number];rport
To: [field0] <sip:[field0]@[remote_ip]:[remote_port]>
Call-ID: [call_id]
CSeq: 1 REGISTER
Contact: sip:[field0]@[local_ip]:[local_port]
Content-Length: 0
Expires: 300
]]>
</send>
\kEBE4p0S}0
<recv response="100" ptional="true">
</recv>
eRMrij9q^_(z0
<!-- SIPp会收到来自AST要求验证的401 消息体,Recv意思为Receive,接收到来自AST的401要求验证的消息,Next为如果收到401,那么转至Label为1的地方进行操作 -->
<recv response="401" auth="true" next="1">
</recv>
aD V&d@6Un-p$Y0
<!-- send invite with authentication messages -->
<!-- 开始发送Register消息,里面将把验证的密码消息发送给对方,在消息体里面是抓不到密码消息的,而且已经被md5方式加密过。-->
6}R Qm5hO&e]t7V0
<label id="1"/>
<send retrans="500">
<![CDATA[
REGISTER sip:[field0]@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port]
From: [field0] <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number];rport
To: [field0] <sip:[field0]@[remote_ip]:[remote_port]>
Call-ID: [call_id]
CSeq: 2 REGISTER
Contact: sip:[field0]@[local_ip]:[local_port]
[field1]
Content-Length: [len]
Expires: 3600
]]>
</send>
51Testing软件测试网T*Wj\z]YZc2?
<recv response="100" ptional="true">
</recv>
Q7nh%b}2P0
<!-- 收到来自AST的200 ACK消息后,系统转至等待1000ms,或者可以直接去掉该设置 -->
51Testing软件测试网)CZ^%d4`;_1Z
<recv response="200" next="2">
</recv>
51Testing软件测试网L1sm A'u
<label id="2"/>
<pause milliseconds="1000"/>
ole`s/{1Gjj0
51Testing软件测试网S9?e
MJ"B
<!-- Keep the call open for a while in case the 200 is lost to be -->
<!-- able to retransmit it if we receive the BYE again. -->
<pause milliseconds="4000"/>
<!-- definition of the response time repartition table (unit is ms) -->
51Testing软件测试网 X7BCj0^U
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
:{c&XT.b.k1[s0
<!-- definition of the call length repartition table (unit is ms) -->
QdT'f1[6VM+P0
<CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
</scenario>
51Testing软件测试网ZC-@4b_}-gEp@
user.csv代码如下: