sipp register 腳本

 1 <?xml version="1.0" encoding="ISO-8859-1" ?>
  2 <!DOCTYPE scenario SYSTEM "sipp.dtd">
  3 <!-- This program is free software; you can redistribute it and/or      -->
  4 <!-- modify it under the terms of the GNU General Public License as     -->
  5 <!-- published by the Free Software Foundation; either version 2 of the -->
  6 <!-- License, or (at your option) any later version.                    -->
  7 <!--                                                                    -->
  8 <!--                                                                    -->
  9 <scenario name="reg">
 10   <label id="1"/>
 11   <send retrans="500">
 12     <![CDATA[
 13       REGISTER sip:[field1] SIP/2.0
 14       Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch];rport
 15       From:<sip:[field0]@[field1]>;tag=[call_number]
 16       To:<sip:[field0]@[field1]>
 17       Max-Forwards: 7
 18       Call-ID: [call_id]
 19       CSeq: 1 REGISTER
 20       Contact: sip:[field0]@[local_ip]:[local_port]
 21       User-Agent: Sipp
 22       X-cid: [call_id]
 23       Content-Length: 0
 24       Expires: 3600
 25     ]]>
 26   </send>
 27 
 28   <recv response="401" auth="true" next="2">
 29   </recv>
 30 
 31  <label id="2"/>
 32   <send retrans="500">
 33     <![CDATA[
 34  
 35       REGISTER sip:[field1] SIP/2.0
 36       Via: SIP/2.0/[transport] [local_ip]:[local_port]; branch=[branch];rport
 37       From: <sip:[field0]@[field1]>;tag=[call_number]
 38       To: <sip:[field0]@[field1]>
 39       Max-Forwards: 7
 40       Call-ID: [call_id]
 41       CSeq: 2 REGISTER
 42       Contact: sip:[field0]@[local_ip]:[local_port]
 43       User-Agent: Sipp
 44       X-cid: [call_id]
 45       [field2]
 46       Content-Length: 0
 47       Expires: 3600
 48     ]]>
 49 
 50   </send>
 51 
 52   <recv response="200" >
 53   </recv>
 54 
 55   <!-- definition of the response time repartition table (unit is ms)   -->

 56   <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
 57   <!-- definition of the call length repartition table (unit is ms)     -->
 58   <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
 59 </scenario>

發佈了145 篇原創文章 · 獲贊 18 · 訪問量 16萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章