Guest User

Untitled

a guest
Jan 31st, 2011
731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.21 KB | None | 0 0
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <!DOCTYPE scenario SYSTEM "sipp.dtd">
  3.  
  4. <scenario name="UAS">
  5.   <!-- You must supply a file containing data for injection -->
  6.   <!-- field0 : dummy index -->
  7.   <!-- field1 : local username -->
  8.   <!-- field2 : local domain -->
  9.   <!-- field3 : authentication -->  
  10.   <!-- Sample
  11. SEQUENTIAL
  12. 0;1001;test.com;[authentication username=1001 password=1001]
  13.  -->
  14.  
  15.   <!-- arguments to sipp must include: -->
  16.   <!-- -i : local_ip -->
  17.   <!-- -p : local_port -->
  18.   <!-- -sf : scenario file -->
  19.   <!-- -inf : injection data file -->
  20.   <!--  if no registration, remote host(192.168.2.146) is not needed -->
  21.   <!-- Ex.: sipp -i 192.168.2.122 -p 6060 -sf uas.xml -inf data_s.txt 192.168.2.146 -->
  22.  
  23.   <send retrans="500">
  24.     <![CDATA[
  25.     REGISTER sip:[field2] SIP/2.0
  26.     Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  27.     Max-Forwards: 20
  28.     From: "[field1]" <sip:[field1]@[field2]>;tag=[call_number]
  29.     To: "[field1]" <sip:[field1]@[field2]>
  30.     Call-ID: [call_id]
  31.     CSeq: [cseq] REGISTER
  32.     Contact: <sip:[field1]@[local_ip]:[local_port]>
  33.     Expires: 300
  34.     User-Agent: SIPP_S
  35.     Content-Length: 0
  36.    ]]>
  37.   </send>
  38.  
  39.   <recv response="401" auth="true" rtd="true" />
  40.    
  41.   <send retrans="500">
  42.     <![CDATA[
  43.     REGISTER sip:[field2] SIP/2.0
  44.     Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  45.     Max-Forwards: 20
  46.     From: "[field1]" <sip:[field1]@[field2]>;tag=[call_number]
  47.     To: "[field1]" <sip:[field1]@[field2]>
  48.     Call-ID: [call_id]
  49.     CSeq: [cseq] REGISTER
  50.     Contact: <sip:[field1]@[local_ip]:[local_port]>
  51.     Expires: 300
  52.     User-Agent: SIPP_S
  53.     [field3]
  54.     Content-Length: 0
  55.     ]]>
  56.   </send>
  57.    
  58.   <recv response="200" />
  59.  
  60.   <recv request="NOTIFY" option="true" />
  61.  
  62.   <!-- By adding rrs="true" (Record Route Sets), the route sets         -->
  63.   <!-- are saved and used for following messages sent. Useful to test   -->
  64.   <!-- against stateful SIP proxies/B2BUAs.                             -->
  65.   <recv request="INVITE" rrs="true" crlf="true" />
  66.  
  67.   <send>
  68.     <![CDATA[
  69.     SIP/2.0 100 Trying
  70.     [last_To:];tag=[call_number]
  71.     [last_From:]
  72.     [last_Call-ID:]
  73.     [last_CSeq:]
  74.     Contact: <sip:[field1]@[local_ip]:[local_port]>
  75.     [last_Via:]
  76.     User-Agent: SIPP_S
  77.     Content-Length: 0
  78.    ]]>
  79.   </send>
  80.  
  81.   <send>
  82.     <![CDATA[
  83.     SIP/2.0 180 Ringing
  84.     [last_To:];tag=[call_number]
  85.     [last_From:]
  86.     [last_Call-ID:]
  87.     [last_CSeq:]
  88.     [last_Contact:]
  89.     [last_Via:]
  90.     User-Agent: SIPP_S
  91.     Content-Length: 0
  92.    ]]>
  93.   </send>
  94.  
  95.   <send retrans="500">
  96.     <![CDATA[
  97.     SIP/2.0 200 OK
  98.     [last_Via:]
  99.     [last_To:];tag=[call_number]
  100.     [last_From:]
  101.     [last_Call-ID:]
  102.     [last_CSeq:]
  103.     [last_Contact:]
  104.     User-Agent: SIPP_S
  105.     Content-Type: application/sdp
  106.     Content-Length: [len]
  107.  
  108.     v=0
  109.     o=CMI-SIPUA 61838 0 IN IP[local_ip_type] [local_ip]
  110.     s=SIP CALL
  111.     c=IN IP[media_ip_type] [media_ip]
  112.     t=0 0
  113.     m=audio [media_port] RTP/AVP 0
  114.     a=rtpmap:0 PCMU/8000
  115.     a=sendrecv
  116.    ]]>
  117.   </send>
  118.  
  119.   <!-- The [last_Via:] above will cause all Via Headers received in the last message to be added at that point in the SIP message, but they will be combined in a single Header (separated by commas). So the message will not be exactly the same as generated by a real CSP -->
  120.  
  121.   <recv request="INVITE" optional="true" />
  122.   <!-- the above is used to ignore duplicated INVITE sent by OpenSER -->
  123.  
  124.   <recv request="ACK"
  125.          optional="true"
  126.          rtd="true"
  127.          crlf="true">
  128.   </recv>
  129.  
  130.   <recv request="BYE">
  131.   </recv>
  132.  
  133.   <send>
  134.       <![CDATA[  
  135.        SIP/2.0 200 OK
  136.        [last_Via:]
  137.        [last_From:]
  138.        [last_To:]
  139.        [last_Call-ID:]
  140.        [last_CSeq:]
  141.        Contact: <sip:[field1]@[local_ip]:[local_port];transport=[transport]>
  142.        Content-Length: 0
  143.     ]]>
  144.   </send>
  145.  
  146.   <!-- Keep the call open for a while in case the 200 is lost to be     -->
  147.   <!-- able to retransmit it if we receive the BYE again.               -->
  148.   <timewait milliseconds="4000"/>
  149.  
  150.   <!-- definition of the response time repartition table (unit is ms)   -->
  151.   <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  152.  
  153.   <!-- definition of the call length repartition table (unit is ms)     -->
  154.   <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  155.  
  156. </scenario>
Advertisement
Add Comment
Please, Sign In to add comment