51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 5086|回复: 3
打印 上一主题 下一主题

sipp reg.xml

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2009-4-18 14:09:49 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<!-- 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 'uac' scenario.                       -->
<!--                                                                    -->

<scenario name="Basic Sipstone UAC">
  <!-- In client mode (sipp placing calls), the Call-ID MUST be         -->
  <!-- generated by sipp. To do so, use sipp keyword.                -->
  <send retrans="500">
    <![CDATA[

      REGISTER sip:[xc_ip] SIP/2.0
      Via: SIP/2.0/[transport] [inter_ip]:[local_port];branch=z9hG4bK[call_number][cseq]
      To: [service] <sip:[service]@[xc_ip]>
      From: [f_id] <sip:[f_id]@[xc_ip]:[local_port]>;tag=[call_number]
      Call-ID: [call_id]
      CSeq: 1 REGISTER
      Max-Forwards: 70
      Expires: 3600
      Contact: <sip:[f_id]@[inter_ip]:[local_port]>
      Content-Length: 0

    ]]>
  </send>


  <recv response="100"
        optional="true">
  </recv>


  <recv response="401" auth="true">
  </recv>


  <send retrans="500">
    <![CDATA[

      REGISTER sip:[xc_ip] SIP/2.0
      Via: SIP/2.0/[transport] [inter_ip]:[local_port];branch=z9hG4bK[call_number][cseq]
      To: [service] <sip:[service]@[xc_ip]>
      From: [f_id] <sip:[f_id]@[xc_ip]:[local_port]>;tag=[call_number]
      Call-ID: [call_id]
      CSeq: 2 REGISTER
      Max-Forwards: 70
      Expires: 3600
      Contact: <sip:[f_id]@[inter_ip]:[local_port]>
      [authentication]
      Content-Length: 0

    ]]>
  </send>


  <recv response="100"
        optional="true">
  </recv>


  <recv response="200">
  </recv>



  <!-- 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>
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2009-4-18 14:10:20 | 只看该作者
uac
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<!-- 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 'uac' scenario.                       -->
<!--                                                                    -->

<scenario name="Basic Sipstone UAC">
  <!-- In client mode (sipp placing calls), the Call-ID MUST be         -->
  <!-- generated by sipp. To do so, use sipp keyword.                -->
  <send retrans="500">
    <![CDATA[

      INVITE sip:[service]@[xc_ip] SIP/2.0
      Via: SIP/2.0/[transport] [inter_ip]:[local_port];branch=z9hG4bK[call_number][cseq]
      To: <sip:[service]@[xc_ip]>
      From: [f_id] <sip:[f_id]@[xc_ip]:[local_port]>;tag=[call_number]
      Call-ID: [call_id]
      CSeq: 1 INVITE
      Max-Forwards: 70
      Contact: <sip:[f_id]@[inter_ip]:[local_port]>
      Content-Type: application/sdp
      Content-Length: [len]

      v=0
      o=user1 53655765 2353687637 IN IP4 [inter_ip]
      s=Session SDP
      c=IN IP4 [inter_ip]
      t=0 0
      m=audio [media_port] RTP/AVP 0
      a=rtpmap:0 PCMU/8000

    ]]>
  </send>


  <recv response="407" auth="true">
  </recv>


  <send>
    <![CDATA[

      ACK sip:[service]@[xc_ip] SIP/2.0
      [last_Via:]
      To: <sip:[service]@[xc_ip]>[peer_tag_param]
      From: [f_id] <sip:[f_id]@[xc_ip]:[local_port]>;tag=[call_number]
      Call-ID: [call_id]
      CSeq: 1 ACK
      Max-Forwards: 70
      Content-Length: [len]

    ]]>
  </send>

  <send retrans="500">
    <![CDATA[

      INVITE sip:[service]@[xc_ip] SIP/2.0
      Via: SIP/2.0/[transport] [inter_ip]:[local_port];branch=z9hG4bK[call_number][cseq]
      To: <sip:[service]@[xc_ip]>[peer_tag_param]
      From: [f_id] <sip:[f_id]@[xc_ip]:[local_port]>;tag=[call_number]
      Call-ID: [call_id]
      CSeq: 2 INVITE
      Max-Forwards: 70
      Contact: <sip:[f_id]@[inter_ip]:[local_port]>
      Content-Type: application/sdp
      Content-Length: [len]
      [authentication]

      v=0
      o=user1 53655765 2353687637 IN IP4 [inter_ip]
      s=Session SDP
      c=IN IP4 [inter_ip]
      t=0 0
      m=audio [media_port] RTP/AVP 0
      a=rtpmap:0 PCMU/8000


    ]]>
  </send>


  <recv response="100"
        optional="true">
  </recv>


  <recv response="180" optional="true">
  </recv>


  <recv response="200" crlf="true">
  </recv>




  <!-- By adding rrs="true" (Record Route Sets), the route sets         -->
  <!-- are saved and used for following messages sent. Useful to test   -->
  <!-- against stateful SIP proxies/B2BUAs.                             -->


  <!-- Packet lost can be simulated in any send/recv message by         -->
  <!-- by adding the 'lost = "10"'. Value can be [1-100] percent.       -->
  <send>
    <![CDATA[

      ACK sip:[service]@[xc_ip] SIP/2.0
      Via: SIP/2.0/UDP [inter_ip]:[local_port];branch=z9hG4bK[call_number]a[cseq]
      To: <sip:[service]@[xc_ip]>[peer_tag_param]
      From: [f_id] <sip:[f_id]@[xc_ip]:[local_port]>;tag=[call_number]
      Call-ID: [call_id]
      CSeq: 2 ACK
      Max-Forwards: 70
      Content-Length: [len]

    ]]>
  </send>

  <!-- This delay can be customized by the -d command-line option       -->
  <!-- or by adding a 'milliseconds = "value"' option here.             -->




<pause milliseconds="500"/>



  <!-- The 'crlf' option inserts a blank line in the statistics report. -->
  <send retrans="500">
    <![CDATA[

      BYE sip:[service]@[xc_ip] SIP/2.0
      Via: SIP/2.0/UDP [inter_ip]:[local_port];branch=z9hG4bK[call_number][cseq]
      To: "[service]" <sip:[service]@[xc_ip]:[local_port]>[peer_tag_param]
      From: [f_id] <sip:[f_id]@[inter_ip]:[local_port]>;tag=[call_number]
      Call-ID: [call_id]
      CSeq: 3 BYE
      Max-Forwards: 70
      Content-Length: 0

    ]]>
  </send>

  <recv response="200" crlf="true">
  </recv>

  <!-- 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>
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2009-4-18 14:10:39 | 只看该作者
uas
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<!-- 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 'uac' scenario.                       -->
<!--                                                                    -->

<scenario name="Basic Sipstone UAS1">
  <!-- In client mode (sipp placing calls), the Call-ID MUST be         -->
  <!-- generated by sipp. To do so, use sipp keyword.                -->

  <recv request="INVITE">
  </recv>

  <send>
    <![CDATA[

      SIP/2.0 100 Trying
      [last_Via:]
      [last_To:]
      [last_From:]
      Call-ID: [call_id]
      [last_CSeq:]
      Content-Length: 0

    ]]>
  </send>


  <send>
    <![CDATA[

      SIP/2.0 180 Ringing
      [last_Via:]
      [last_To:];tag=[call_number]
      [last_From:]
      Call-ID: [call_id]
      [last_CSeq:]
      Content-Length: 0
    ]]>
  </send>


<pause milliseconds="500"/>


  <send crlf="true">
    <![CDATA[

      SIP/2.0 200 OK
      [last_Via:]
      [last_To:];tag=[call_number]
      [last_From:]
      Call-ID: [call_id]
      [last_CSeq:]
      Contact: <sip:[f_id]@[inter_ip]:[local_port]>
      Content-Type: application/sdp
      Content-Length: [len]

      v=0
      o=user1 53655765 2353687637 IN IP4 [inter_ip]
      s=Session SDP
      c=IN IP4 [inter_ip]
      t=0 0
      m=audio [media_port] RTP/AVP 0
      a=rtpmap:0 PCMU/8000
    ]]>
    </send>


  <recv request="ACK">
  </recv>





  <!-- The 'crlf' option inserts a blank line in the statistics report. -->


  <recv request="BYE">
  </recv>


  <send>
    <![CDATA[

      SIP/2.0 200 OK
      [last_Via:]
      [last_To:]
      [last_From:]
      Call-ID: [call_id]
      [last_CSeq:]
      Content-Length: 0
    ]]>
  </send>


  <!-- 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>
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2010-12-2 14:59:25 | 只看该作者
使用sipp测试时遇到如下问题,请大侠们帮忙啊,在线等

2010-12-02      14:43:51:437    1291272231.437500: Unknown file type (valid values are RANDOM, SEQUE
NTIAL, and USER) for /cygdrive/d/script/register.csv:????
.
2010-12-02      14:43:51:500    1291272231.500000: Unknown file type (valid values are RANDOM, SEQUE
NTIAL, and USER) for /cygdrive/d/script/register.csv:????
.
2010-12-02      14:43:51:562    1291272231.562500: Unknown file type (valid values are RANDOM, SEQUE
NTIAL, and USER) for /cygdrive/d/script/register.csv:????
.
2010-12-02      14:43:51:625    1291272231.625000: Unknown file type (valid values are RANDOM, SEQUE
NTIAL, and USER) for /cygdrive/d/script/register.csv:????
.
2010-12-02      14:43:51:687    1291272231.687500: Unknown file type (valid values are RANDOM, SEQUE
NTIAL, and USER) for /cygdrive/d/script/register.csv:????
.
2010-12-02      14:43:51:750    1291272231.750000: Unknown file type (valid values are RANDOM, SEQUE
NTIAL, and USER) for /cygdrive/d/script/register.csv:????
.
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-6 07:26 , Processed in 0.069433 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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