uas-reinv-glare.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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="Offer answer glare (#1166)">
  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:];tag=[call_number]
  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=- 1 1 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. <recv request="UPDATE" crlf="true">
  53. <action>
  54. <ereg regexp=".*" search_in="hdr" header="From" assign_to="3"/>
  55. <ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="4,5"/>
  56. <assign assign_to="4" variable="5" />
  57. <ereg regexp=".*" search_in="hdr" header="Via" assign_to="6"/>
  58. <ereg regexp=".*" search_in="hdr" header="CSeq" assign_to="7"/>
  59. </action>
  60. </recv>
  61. <send retrans="500">
  62. <![CDATA[
  63. INVITE sip:[$5] SIP/2.0
  64. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  65. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  66. To[$3]
  67. Call-ID: [call_id]
  68. Cseq: 1 INVITE
  69. Contact: sip:sipp@[local_ip]:[local_port]
  70. Max-Forwards: 70
  71. Content-Type: application/sdp
  72. Content-Length: [len]
  73. v=0
  74. o=- 2 2 IN IP4 192.168.0.15
  75. s=pjmedia
  76. c=IN IP4 192.168.0.15
  77. t=0 0
  78. m=audio 4004 RTP/AVP 0
  79. ]]>
  80. </send>
  81. <recv response="491" rtd="true">
  82. </recv>
  83. <send>
  84. <![CDATA[
  85. ACK sip:[$5] SIP/2.0
  86. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  87. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  88. To[$3]
  89. Call-ID: [call_id]
  90. Cseq: 1 INVITE
  91. Contact: sip:sipp@[local_ip]:[local_port]
  92. Max-Forwards: 70
  93. Content-Length: 0
  94. ]]>
  95. </send>
  96. <send>
  97. <![CDATA[
  98. SIP/2.0 200 OK
  99. Via[$6]
  100. [last_From:]
  101. [last_To:];tag=[call_number]
  102. [last_Call-ID:]
  103. CSeq[$7]
  104. Contact: sip:sipp@[local_ip]:[local_port]
  105. Content-Type: application/sdp
  106. Content-Length: [len]
  107. Allow: INVITE, UPDATE, ACK, BYE
  108. v=0
  109. o=- 3441953879 3441953879 IN IP4 192.168.0.15
  110. s=pjmedia
  111. c=IN IP4 192.168.0.15
  112. t=0 0
  113. m=audio 4004 RTP/AVP 0 111
  114. a=rtpmap:0 PCMU/8000
  115. a=rtpmap:111 telephone-event/8000
  116. a=fmtp:111 0-15
  117. ]]>
  118. </send>
  119. <!-- Keep the call open for a while in case the 200 is lost to be -->
  120. <!-- able to retransmit it if we receive the BYE again. -->
  121. <pause milliseconds="4000"/>
  122. <!-- definition of the response time repartition table (unit is ms) -->
  123. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  124. <!-- definition of the call length repartition table (unit is ms) -->
  125. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  126. </scenario>