uac-bad-ack.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. <scenario name="UAC with bad ACK">
  20. <!-- UAC with bad ACK causes assertion with pjsip 1.4 -->
  21. <send retrans="500">
  22. <![CDATA[
  23. INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
  24. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  25. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  26. To: sut <sip:[service]@[remote_ip]:[remote_port]>
  27. Call-ID: [call_id]
  28. CSeq: 1 INVITE
  29. Contact: sip:sipp@[local_ip]:[local_port]
  30. Max-Forwards: 70
  31. Subject: Performance Test
  32. Content-Type: application/sdp
  33. Content-Length: [len]
  34. v=0
  35. o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
  36. s=-
  37. c=IN IP[media_ip_type] [media_ip]
  38. t=0 0
  39. m=audio [media_port] RTP/AVP 0
  40. a=rtpmap:0 PCMU/8000
  41. ]]>
  42. </send>
  43. <recv response="100"
  44. optional="true">
  45. </recv>
  46. <recv response="180" optional="true">
  47. </recv>
  48. <!-- By adding rrs="true" (Record Route Sets), the route sets -->
  49. <!-- are saved and used for following messages sent. Useful to test -->
  50. <!-- against stateful SIP proxies/B2BUAs. -->
  51. <recv response="200" rtd="true">
  52. </recv>
  53. <!-- Packet lost can be simulated in any send/recv message by -->
  54. <!-- by adding the 'lost = "10"'. Value can be [1-100] percent. -->
  55. <send>
  56. <![CDATA[
  57. ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0
  58. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  59. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  60. To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
  61. Call-ID: [call_id]
  62. CSeq: 1 ACK
  63. Contact: sip:sipp@[local_ip]:[local_port]
  64. Max-Forwards: 70
  65. Subject: Performance Test
  66. Content-Length: 0
  67. ]]>
  68. </send>
  69. <!-- This delay can be customized by the -d command-line option -->
  70. <!-- or by adding a 'milliseconds = "value"' option here. -->
  71. <pause/>
  72. <!-- The 'crlf' option inserts a blank line in the statistics report. -->
  73. <send retrans="500">
  74. <![CDATA[
  75. BYE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
  76. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=z9hG4bK-1
  77. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  78. To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
  79. Call-ID: [call_id]
  80. CSeq: 2 BYE
  81. Contact: sip:sipp@[local_ip]:[local_port]
  82. Max-Forwards: 70
  83. Subject: Performance Test
  84. Content-Length: 0
  85. ]]>
  86. </send>
  87. <recv response="200" crlf="true">
  88. </recv>
  89. <pause milliseconds="2000"/>
  90. <send>
  91. <![CDATA[
  92. ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0
  93. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=z9hG4bK-1
  94. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  95. To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
  96. Call-ID: [call_id]
  97. CSeq: 2 BYE
  98. Contact: sip:sipp@[local_ip]:[local_port]
  99. Max-Forwards: 70
  100. Subject: Performance Test
  101. Content-Length: 0
  102. ]]>
  103. </send>
  104. <!-- definition of the response time repartition table (unit is ms) -->
  105. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  106. <!-- definition of the call length repartition table (unit is ms) -->
  107. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  108. </scenario>