uac-reinvite-bad-via-branch.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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. <!-- This program is distributed in the hope that it will be useful, -->
  9. <!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
  10. <!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
  11. <!-- GNU General Public License for more details. -->
  12. <!-- -->
  13. <!-- You should have received a copy of the GNU General Public License -->
  14. <!-- along with this program; if not, write to the -->
  15. <!-- Free Software Foundation, Inc., -->
  16. <!-- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -->
  17. <!-- -->
  18. <!-- -->
  19. <!-- Re-INVITE with bad Via branch (it has the same branch as the
  20. previous INVITE (ticket #965) will cause assertion
  21. -->
  22. <scenario name="UAC re-INVITE with bad Via branch">
  23. <label id="1"/>
  24. <send>
  25. <![CDATA[
  26. INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
  27. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=z9hG4bKPj-1
  28. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  29. To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
  30. Call-ID: [call_id]
  31. CSeq: [cseq] INVITE
  32. Contact: sip:sipp@[local_ip]:[local_port]
  33. Max-Forwards: 70
  34. Subject: Performance Test
  35. Content-Type: application/sdp
  36. Content-Length: [len]
  37. v=0
  38. o=Tester 234 123 IN IP4 127.0.0.1
  39. s=Tester
  40. c=IN IP4 127.0.0.1
  41. t=0 0
  42. m=audio 17424 RTP/AVP 0 101
  43. a=rtpmap:101 telephone-event/8000
  44. a=sendrecv
  45. ]]>
  46. </send>
  47. <recv response="100"
  48. optional="true">
  49. </recv>
  50. <recv response="180" optional="true">
  51. </recv>
  52. <!-- By adding rrs="true" (Record Route Sets), the route sets -->
  53. <!-- are saved and used for following messages sent. Useful to test -->
  54. <!-- against stateful SIP proxies/B2BUAs. -->
  55. <recv response="200" rtd="true">
  56. </recv>
  57. <!-- Packet lost can be simulated in any send/recv message by -->
  58. <!-- by adding the 'lost = "10"'. Value can be [1-100] percent. -->
  59. <send>
  60. <![CDATA[
  61. ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0
  62. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=z9hG4bKPj-2
  63. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  64. To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
  65. Call-ID: [call_id]
  66. CSeq: [cseq] ACK
  67. Contact: sip:sipp@[local_ip]:[local_port]
  68. Max-Forwards: 70
  69. Subject: Performance Test
  70. Content-Length: 0
  71. ]]>
  72. </send>
  73. <!-- Uncomment this to the test retry/looping scenario -->
  74. <!--pause distribution="uniform" min="0" max="100"/-->
  75. <!-- Re-INVITE with Via branch value the same as previous INVITE -->
  76. <send>
  77. <![CDATA[
  78. INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
  79. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=z9hG4bKPj-1
  80. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  81. To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
  82. Call-ID: [call_id]
  83. CSeq: [cseq] INVITE
  84. Contact: sip:sipp@[local_ip]:[local_port]
  85. Max-Forwards: 70
  86. Subject: Performance Test
  87. Content-Type: application/sdp
  88. Content-Length: [len]
  89. v=0
  90. o=Tester 234 124 IN IP4 127.0.0.1
  91. s=Tester
  92. c=IN IP4 127.0.0.1
  93. t=0 0
  94. m=audio 17424 RTP/AVP 0 101
  95. a=rtpmap:101 telephone-event/8000
  96. ]]>
  97. </send>
  98. <!-- Previous INVITE transaction may have been destroyed, and 200 -->
  99. <!-- response is received, instead of 500. So, let's just try again, -->
  100. <!-- i.e: send ACK and repeat the scenario. -->
  101. <recv response="200" optional="true" next="9">
  102. </recv>
  103. <!-- By adding rrs="true" (Record Route Sets), the route sets -->
  104. <!-- are saved and used for following messages sent. Useful to test -->
  105. <!-- against stateful SIP proxies/B2BUAs. -->
  106. <recv response="500" rtd="true">
  107. </recv>
  108. <!-- Packet lost can be simulated in any send/recv message by -->
  109. <!-- by adding the 'lost = "10"'. Value can be [1-100] percent. -->
  110. <send>
  111. <![CDATA[
  112. ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0
  113. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=z9hG4bKPj-1
  114. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  115. To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
  116. Call-ID: [call_id]
  117. CSeq: [cseq] ACK
  118. Contact: sip:sipp@[local_ip]:[local_port]
  119. Max-Forwards: 70
  120. Subject: Performance Test
  121. Content-Length: 0
  122. ]]>
  123. </send>
  124. <pause milliseconds="500"/>
  125. <!-- The 'crlf' option inserts a blank line in the statistics report. -->
  126. <send>
  127. <![CDATA[
  128. BYE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
  129. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  130. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  131. To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
  132. Call-ID: [call_id]
  133. CSeq: [cseq] BYE
  134. Contact: sip:sipp@[local_ip]:[local_port]
  135. Max-Forwards: 70
  136. Subject: Performance Test
  137. Content-Length: 0
  138. ]]>
  139. </send>
  140. <recv response="200" crlf="true" next="10">
  141. </recv>
  142. <label id="9"/>
  143. <!-- Send ACK before repeating the scenario -->
  144. <send>
  145. <![CDATA[
  146. ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0
  147. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=z9hG4bKPj-1
  148. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  149. To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
  150. Call-ID: [call_id]
  151. CSeq: [cseq] ACK
  152. Contact: sip:sipp@[local_ip]:[local_port]
  153. Max-Forwards: 70
  154. Subject: Performance Test
  155. Content-Length: 0
  156. ]]>
  157. </send>
  158. <!-- Wait for this tsx getting destroyed before restarting -->
  159. <pause milliseconds="5100" next="1"/>
  160. <label id="10"/>
  161. <!-- definition of the response time repartition table (unit is ms) -->
  162. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  163. <!-- definition of the call length repartition table (unit is ms) -->
  164. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  165. </scenario>