uas-answer-180-multiple-fmts.xml 5.2 KB

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