uas-answer-180-multiple-fmts-support-update.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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="UAS answer multiple formats in early media, UAS supports UPDATE method">
  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. <ereg regexp=".*" search_in="hdr" header="Via" assign_to="6"/>
  30. <ereg regexp=".*" search_in="hdr" header="CSeq" assign_to="7"/>
  31. </action>
  32. </recv>
  33. <!-- The '[last_*]' keyword is replaced automatically by the -->
  34. <!-- specified header if it was present in the last message received -->
  35. <!-- (except if it was a retransmission). If the header was not -->
  36. <!-- present or if no message has been received, the '[last_*]' -->
  37. <!-- keyword is discarded, and all bytes until the end of the line -->
  38. <!-- are also discarded. -->
  39. <!-- -->
  40. <!-- If the specified header was present several times in the -->
  41. <!-- message, all occurences are concatenated (CRLF seperated) -->
  42. <!-- to be used in place of the '[last_*]' keyword. -->
  43. <send>
  44. <![CDATA[
  45. SIP/2.0 180 Ringing
  46. [last_Via:]
  47. [last_From:]
  48. [last_To:];tag=[call_number]
  49. [last_Call-ID:]
  50. [last_CSeq:]
  51. Contact: sip:sipp@[local_ip]:[local_port]
  52. Content-Type: application/sdp
  53. Content-Length: [len]
  54. Allow: INVITE, UPDATE, ACK, BYE
  55. v=0
  56. o=- 3441953879 3441953879 IN IP4 192.168.0.15
  57. s=pjmedia
  58. c=IN IP4 192.168.0.15
  59. t=0 0
  60. m=audio 4004 RTP/AVP 0 8 3 111
  61. a=rtpmap:0 PCMU/8000
  62. a=rtpmap:8 PCMA/8000
  63. a=rtpmap:3 GSM/8000
  64. a=rtpmap:111 telephone-event/8000
  65. a=fmtp:111 0-15
  66. ]]>
  67. </send>
  68. <recv request="UPDATE" crlf="true">
  69. </recv>
  70. <send>
  71. <![CDATA[
  72. SIP/2.0 200 OK
  73. [last_Via:]
  74. [last_From:]
  75. [last_To:];tag=[call_number]
  76. [last_Call-ID:]
  77. [last_CSeq:]
  78. Contact: sip:sipp@[local_ip]:[local_port]
  79. Content-Type: application/sdp
  80. Content-Length: [len]
  81. Allow: INVITE, UPDATE, ACK, BYE
  82. v=0
  83. o=- 3441953879 3441953879 IN IP4 192.168.0.15
  84. s=pjmedia
  85. c=IN IP4 192.168.0.15
  86. t=0 0
  87. m=audio 4004 RTP/AVP 0 111
  88. a=rtpmap:0 PCMU/8000
  89. a=rtpmap:111 telephone-event/8000
  90. a=fmtp:111 0-15
  91. ]]>
  92. </send>
  93. <pause milliseconds="2000"/>
  94. <send retrans="500">
  95. <![CDATA[
  96. SIP/2.0 200 OK
  97. Via[$6]
  98. [last_From:]
  99. [last_To:];tag=[call_number]
  100. [last_Call-ID:]
  101. CSeq[$7]
  102. Contact: sip:sipp@[local_ip]:[local_port]
  103. Content-Type: application/sdp
  104. Content-Length: [len]
  105. Allow: INVITE, UPDATE, ACK, BYE
  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 4004 RTP/AVP 0 111
  112. a=rtpmap:0 PCMU/8000
  113. a=rtpmap:111 telephone-event/8000
  114. a=fmtp:111 0-15
  115. ]]>
  116. </send>
  117. <recv request="ACK" crlf="true">
  118. </recv>
  119. <pause milliseconds="2000"/>
  120. <send retrans="500">
  121. <![CDATA[
  122. BYE sip:[$5] SIP/2.0
  123. Via: SIP/2.0/[transport] [local_ip]:[local_port]
  124. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  125. To[$3]
  126. Call-ID: [call_id]
  127. Cseq: 1 BYE
  128. Contact: sip:sipp@[local_ip]:[local_port]
  129. Max-Forwards: 70
  130. Content-Length: 0
  131. ]]>
  132. </send>
  133. <recv response="200">
  134. </recv>
  135. <!-- definition of the response time repartition table (unit is ms) -->
  136. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  137. <!-- definition of the call length repartition table (unit is ms) -->
  138. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  139. </scenario>