uas-reinv-with-less-media.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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 OK and re-INVITE with less media (#16xx)">
  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 4000 RTP/AVP 0 96
  48. a=rtpmap:0 PCMU/8000
  49. a=rtpmap:96 telephone-event/8000
  50. a=sendrecv
  51. ]]>
  52. </send>
  53. <recv request="ACK" crlf="true">
  54. </recv>
  55. <pause milliseconds="2000"/>
  56. <send retrans="500">
  57. <![CDATA[
  58. INVITE sip:[$5] SIP/2.0
  59. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=z9hG4bK-same-branch
  60. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  61. To[$3]
  62. Call-ID: [call_id]
  63. Cseq: 2 INVITE
  64. Max-Forwards: 70
  65. Content-Type: application/sdp
  66. Content-Length: [len]
  67. v=0
  68. o=- 3441953879 3441953879 IN IP4 192.168.0.15
  69. s=pjmedia
  70. c=IN IP4 192.168.0.15
  71. t=0 0
  72. m=audio 4000 RTP/AVP 0 96
  73. a=rtpmap:0 PCMU/8000
  74. a=rtpmap:96 telephone-event/8000
  75. a=sendonly
  76. ]]>
  77. </send>
  78. <recv response="200" rtd="true">
  79. </recv>
  80. <send>
  81. <![CDATA[
  82. ACK sip:[$5] SIP/2.0
  83. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=z9hG4bK-same-branch
  84. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  85. To[$3]
  86. Call-ID: [call_id]
  87. Cseq: 2 ACK
  88. Contact: sip:sipp@[local_ip]:[local_port]
  89. Max-Forwards: 70
  90. Content-Length: 0
  91. ]]>
  92. </send>
  93. <recv request="INVITE" crlf="true">
  94. </recv>
  95. <send retrans="500">
  96. <![CDATA[
  97. SIP/2.0 200 OK
  98. [last_Via:]
  99. [last_From:]
  100. [last_To:]
  101. [last_Call-ID:]
  102. [last_CSeq:]
  103. Contact: sip:sipp@[local_ip]:[local_port]
  104. Content-Type: application/sdp
  105. Content-Length: [len]
  106. v=0
  107. o=- 3441953879 3441953879 IN IP4 192.168.0.15
  108. s=pjmedia
  109. c=IN IP4 192.168.0.15
  110. t=0 0
  111. m=audio 4000 RTP/AVP 0 96
  112. a=rtpmap:0 PCMU/8000
  113. a=rtpmap:96 telephone-event/8000
  114. a=inactive
  115. ]]>
  116. </send>
  117. <recv request="ACK" crlf="true">
  118. </recv>
  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>