uas-reinv-and-ack-without-sdp.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. <!-- Sipp default 'uas' scenario. -->
  19. <!-- -->
  20. <scenario name="Sending re-INVITE and ACK without SDP (#1045)">
  21. <!-- By adding rrs="true" (Record Route Sets), the route sets -->
  22. <!-- are saved and used for following messages sent. Useful to test -->
  23. <!-- against stateful SIP proxies/B2BUAs. -->
  24. <recv request="INVITE" crlf="true">
  25. <action>
  26. <ereg regexp=".*" search_in="hdr" header="From" assign_to="3"/>
  27. <ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="4,5"/>
  28. <assign assign_to="4" variable="5" />
  29. </action>
  30. </recv>
  31. <send retrans="500">
  32. <![CDATA[
  33. SIP/2.0 200 OK
  34. [last_Via:]
  35. [last_From:]
  36. [last_To:]
  37. [last_Call-ID:]
  38. [last_CSeq:]
  39. Contact: sip:sipp@[local_ip]:[local_port]
  40. Content-Type: application/sdp
  41. Content-Length: [len]
  42. v=0
  43. o=- 3441953879 3441953879 IN IP4 192.168.0.15
  44. s=pjmedia
  45. c=IN IP4 192.168.0.15
  46. t=0 0
  47. m=audio 4004 RTP/AVP 0
  48. ]]>
  49. </send>
  50. <recv request="ACK" crlf="true">
  51. </recv>
  52. <pause milliseconds="2000"/>
  53. <send retrans="500">
  54. <![CDATA[
  55. INVITE sip:[$5] SIP/2.0
  56. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  57. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  58. To[$3]
  59. Call-ID: [call_id]
  60. Cseq: 1 INVITE
  61. Contact: sip:sipp@[local_ip]:[local_port]
  62. Max-Forwards: 70
  63. Content-Length: 0
  64. ]]>
  65. </send>
  66. <recv response="100"
  67. optional="true">
  68. </recv>
  69. <recv response="180" optional="true">
  70. </recv>
  71. <recv response="200" rtd="true">
  72. </recv>
  73. <send>
  74. <![CDATA[
  75. ACK sip:[$5] SIP/2.0
  76. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  77. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  78. To[$3]
  79. Call-ID: [call_id]
  80. Cseq: 1 ACK
  81. Contact: sip:sipp@[local_ip]:[local_port]
  82. Max-Forwards: 70
  83. Content-Length: 0
  84. ]]>
  85. </send>
  86. <!-- Keep the call open for a while in case the 200 is lost to be -->
  87. <!-- able to retransmit it if we receive the BYE again. -->
  88. <pause milliseconds="4000"/>
  89. <!-- definition of the response time repartition table (unit is ms) -->
  90. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  91. <!-- definition of the call length repartition table (unit is ms) -->
  92. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  93. </scenario>