uac-reinvite-port-0-bad-sdp.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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. <!-- Note:
  20. For this test to work, PJSUA-LIB needs to add video line, with
  21. this patch:
  22. pjsua_media.c:1253, after call to pjmedia_endpt_create_sdp():
  23. if (1) {
  24. pjmedia_sdp_media *m = PJ_POOL_ZALLOC_T(pool, pjmedia_sdp_media);
  25. m->desc.media = pj_str("video");
  26. m->desc.port = 3000;
  27. m->desc.transport = pj_str("RTP/AVP");
  28. m->desc.fmt_count = 1;
  29. m->desc.fmt[0] = pj_str("0");
  30. sdp->media[sdp->media_count++] = m;
  31. }
  32. -->
  33. <scenario name="UAC with bad ACK">
  34. <!-- UAC with bad ACK causes assertion with pjsip 1.4 -->
  35. <send retrans="500">
  36. <![CDATA[
  37. INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
  38. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  39. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  40. To: sut <sip:[service]@[remote_ip]:[remote_port]>
  41. Call-ID: [call_id]
  42. CSeq: 1 INVITE
  43. Contact: sip:sipp@[local_ip]:[local_port]
  44. Max-Forwards: 70
  45. Subject: Performance Test
  46. Content-Type: application/sdp
  47. Content-Length: [len]
  48. v=0
  49. o=Tester 234 123 IN IP4 89.208.145.194
  50. s=Tester
  51. c=IN IP4 89.208.145.194
  52. t=0 0
  53. m=audio 17424 RTP/AVP 111 0 18 101
  54. a=rtpmap:111 SPEEX/16000
  55. a=rtpmap:0 PCMU/8000
  56. a=rtpmap:18 G729/8000
  57. a=rtpmap:101 telephone-event/8000
  58. a=sendrecv
  59. a=rtcp:17425
  60. m=video 11128 RTP/AVP 34 103 104
  61. a=rtpmap:34 H263/90000
  62. a=rtpmap:103 H263-1998/90000
  63. a=rtpmap:104 H264/90000
  64. a=sendrecv
  65. a=rtcp:11129
  66. ]]>
  67. </send>
  68. <recv response="100"
  69. optional="true">
  70. </recv>
  71. <recv response="180" optional="true">
  72. </recv>
  73. <!-- By adding rrs="true" (Record Route Sets), the route sets -->
  74. <!-- are saved and used for following messages sent. Useful to test -->
  75. <!-- against stateful SIP proxies/B2BUAs. -->
  76. <recv response="200" rtd="true">
  77. </recv>
  78. <!-- Packet lost can be simulated in any send/recv message by -->
  79. <!-- by adding the 'lost = "10"'. Value can be [1-100] percent. -->
  80. <send>
  81. <![CDATA[
  82. ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0
  83. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  84. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  85. To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
  86. Call-ID: [call_id]
  87. CSeq: 1 ACK
  88. Contact: sip:sipp@[local_ip]:[local_port]
  89. Max-Forwards: 70
  90. Subject: Performance Test
  91. Content-Length: 0
  92. ]]>
  93. </send>
  94. <!-- This delay can be customized by the -d command-line option -->
  95. <!-- or by adding a 'milliseconds = "value"' option here. -->
  96. <pause milliseconds="2000"/>
  97. <send retrans="500">
  98. <![CDATA[
  99. INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
  100. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  101. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  102. To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
  103. Call-ID: [call_id]
  104. CSeq: 2 INVITE
  105. Contact: sip:sipp@[local_ip]:[local_port]
  106. Max-Forwards: 70
  107. Subject: Performance Test
  108. Content-Type: application/sdp
  109. Content-Length: [len]
  110. v=0
  111. o=Tester 234 124 IN IP4 89.208.145.194
  112. s=Tester
  113. c=IN IP4 89.208.145.194
  114. t=0 0
  115. m=audio 17424 RTP/AVP 111 0 18 101
  116. a=rtpmap:111 SPEEX/16000
  117. a=rtpmap:0 PCMU/8000
  118. a=rtpmap:18 G729/8000
  119. a=rtpmap:101 telephone-event/8000
  120. a=sendrecv
  121. a=rtcp:17425
  122. m=video 0 RTP/AVP 34 103 104
  123. a=sendrecv
  124. ]]>
  125. </send>
  126. <!-- By adding rrs="true" (Record Route Sets), the route sets -->
  127. <!-- are saved and used for following messages sent. Useful to test -->
  128. <!-- against stateful SIP proxies/B2BUAs. -->
  129. <recv response="200" rtd="true">
  130. </recv>
  131. <!-- Packet lost can be simulated in any send/recv message by -->
  132. <!-- by adding the 'lost = "10"'. Value can be [1-100] percent. -->
  133. <send>
  134. <![CDATA[
  135. ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0
  136. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  137. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  138. To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
  139. Call-ID: [call_id]
  140. CSeq: 2 ACK
  141. Contact: sip:sipp@[local_ip]:[local_port]
  142. Max-Forwards: 70
  143. Subject: Performance Test
  144. Content-Length: 0
  145. ]]>
  146. </send>
  147. <pause milliseconds="2000"/>
  148. <!-- The 'crlf' option inserts a blank line in the statistics report. -->
  149. <send retrans="500">
  150. <![CDATA[
  151. BYE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
  152. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  153. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  154. To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
  155. Call-ID: [call_id]
  156. CSeq: 3 BYE
  157. Contact: sip:sipp@[local_ip]:[local_port]
  158. Max-Forwards: 70
  159. Subject: Performance Test
  160. Content-Length: 0
  161. ]]>
  162. </send>
  163. <recv response="200" crlf="true">
  164. </recv>
  165. <!-- definition of the response time repartition table (unit is ms) -->
  166. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  167. <!-- definition of the call length repartition table (unit is ms) -->
  168. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  169. </scenario>