uas-answer-200-multiple-fmts.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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">
  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 retrans="500">
  37. <![CDATA[
  38. SIP/2.0 200 OK
  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. <recv request="ACK" crlf="true">
  61. </recv>
  62. <recv request="INVITE" crlf="true">
  63. <action>
  64. <ereg regexp=".*" search_in="hdr" header="From" assign_to="3"/>
  65. <ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="4,5"/>
  66. <assign assign_to="4" variable="5" />
  67. </action>
  68. </recv>
  69. <send retrans="500">
  70. <![CDATA[
  71. SIP/2.0 200 OK
  72. [last_Via:]
  73. [last_From:]
  74. [last_To:];tag=[call_number]
  75. [last_Call-ID:]
  76. [last_CSeq:]
  77. Contact: sip:sipp@[local_ip]:[local_port]
  78. Content-Type: application/sdp
  79. Content-Length: [len]
  80. v=0
  81. o=- 3441953879 3441953879 IN IP4 192.168.0.15
  82. s=pjmedia
  83. c=IN IP4 192.168.0.15
  84. t=0 0
  85. m=audio 4004 RTP/AVP 0 111
  86. a=rtpmap:0 PCMU/8000
  87. a=rtpmap:111 telephone-event/8000
  88. a=fmtp:111 0-15
  89. ]]>
  90. </send>
  91. <recv request="ACK" crlf="true">
  92. </recv>
  93. <pause milliseconds="2000"/>
  94. <send retrans="500">
  95. <![CDATA[
  96. BYE sip:[$5] SIP/2.0
  97. Via: SIP/2.0/[transport] [local_ip]:[local_port]
  98. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  99. To[$3]
  100. Call-ID: [call_id]
  101. Cseq: 1 BYE
  102. Contact: sip:sipp@[local_ip]:[local_port]
  103. Max-Forwards: 70
  104. Content-Length: 0
  105. ]]>
  106. </send>
  107. <recv response="200">
  108. </recv>
  109. <!-- definition of the response time repartition table (unit is ms) -->
  110. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  111. <!-- definition of the call length repartition table (unit is ms) -->
  112. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  113. </scenario>