uas-reinv-no-media.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. <send retrans="500">
  53. <![CDATA[
  54. INVITE sip:[$5] SIP/2.0
  55. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  56. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  57. To[$3]
  58. Call-ID: [call_id]
  59. Cseq: 1 INVITE
  60. Contact: sip:sipp@[local_ip]:[local_port]
  61. Max-Forwards: 70
  62. Content-Type: application/sdp
  63. Content-Length: [len]
  64. v=0
  65. o=- 2 2 IN IP4 192.168.0.15
  66. s=pjmedia
  67. c=IN IP4 192.168.0.15
  68. t=0 0
  69. m=audio 0 RTP/AVP 0
  70. ]]>
  71. </send>
  72. <recv response="488" rtd="true">
  73. </recv>
  74. <send>
  75. <![CDATA[
  76. ACK sip:[$5] SIP/2.0
  77. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  78. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  79. To[$3]
  80. Call-ID: [call_id]
  81. Cseq: 1 INVITE
  82. Contact: sip:sipp@[local_ip]:[local_port]
  83. Max-Forwards: 70
  84. Content-Length: 0
  85. ]]>
  86. </send>
  87. <!-- Keep the call open for a while in case the 200 is lost to be -->
  88. <!-- able to retransmit it if we receive the BYE again. -->
  89. <pause milliseconds="4000"/>
  90. <!-- definition of the response time repartition table (unit is ms) -->
  91. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  92. <!-- definition of the call length repartition table (unit is ms) -->
  93. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  94. </scenario>