51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2950|回复: 1
打印 上一主题 下一主题

用过SIPP这个开源软件的大虾帮忙看看

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-11-12 11:42:36 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
sipp注册流程不能返回200OK    (redhat环境编译的 make ossl)
在收到401后发送第2个REG消息后没有返回200OK(是不是MD5加密有问题)
用到的XML文件:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<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]
      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>
        
  <recv response="401" auth="true" next="1">
  </recv>
   
  <!--  send invite with authentication messages -->
  <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]
      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>
  
  <recv response="200"  next="2">
  </recv>
  
  <label id="2"/>
  <pause milliseconds="1000"/>
   
   
  <!-- definition of the response time repartition table (unit is ms)   -->
  <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>

  <!-- definition of the call length repartition table (unit is ms)     -->
  <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>

</scenario>

CSV文件内容:
RANDOM
8000;[authentication username=8000 password=123456]
8001;[authentication username=8001 password=123456]
8002;[authentication username=8002 password=123456]
8003;[authentication username=8003 password=123456]
8004;[authentication username=8004 password=123456]
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2009-6-19 10:45:26 | 只看该作者
抓包看一下,如果[field1]的认证密码没有加密,那就是MD5没有生效了。
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-9-28 03:21 , Processed in 0.075006 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表