uas-answer-200-multiple-fmts-support-update.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, 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. </action>
  30. </recv>
  31. <!-- The '[last_*]' keyword is replaced automatically by the -->
  32. <!-- specified header if it was present in the last message received -->
  33. <!-- (except if it was a retransmission). If the header was not -->
  34. <!-- present or if no message has been received, the '[last_*]' -->
  35. <!-- keyword is discarded, and all bytes until the end of the line -->
  36. <!-- are also discarded. -->
  37. <!-- -->
  38. <!-- If the specified header was present several times in the -->
  39. <!-- message, all occurences are concatenated (CRLF seperated) -->
  40. <!-- to be used in place of the '[last_*]' keyword. -->
  41. <send retrans="500">
  42. <![CDATA[
  43. SIP/2.0 200 OK
  44. [last_Via:]
  45. [last_From:]
  46. [last_To:];tag=[call_number]
  47. [last_Call-ID:]
  48. [last_CSeq:]
  49. Contact: sip:sipp@[local_ip]:[local_port]
  50. Content-Type: application/sdp
  51. Content-Length: [len]
  52. Allow: INVITE, UPDATE, ACK, BYE
  53. v=0
  54. o=- 3441953879 3441953879 IN IP4 192.168.0.15
  55. s=pjmedia
  56. c=IN IP4 192.168.0.15
  57. t=0 0
  58. m=audio 4004 RTP/AVP 0 8 3 111
  59. a=rtpmap:0 PCMU/8000
  60. a=rtpmap:8 PCMA/8000
  61. a=rtpmap:3 GSM/8000
  62. a=rtpmap:111 telephone-event/8000
  63. a=fmtp:111 0-15
  64. ]]>
  65. </send>
  66. <recv request="ACK" crlf="true">
  67. </recv>
  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. 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>