uas-template.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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="Basic UAS responder">
  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 100 Trying
  39. [last_Via:]
  40. [last_From:]
  41. [last_To:];tag=[call_number]
  42. [last_Call-ID:]
  43. [last_CSeq:]
  44. ]]>
  45. </send>
  46. <send retrans="500">
  47. <![CDATA[
  48. SIP/2.0 301 Redirection
  49. [last_Via:]
  50. [last_From:]
  51. [last_To:];tag=[call_number]
  52. [last_Call-ID:]
  53. [last_CSeq:]
  54. Contact: <sip:target@192.168.254.254>
  55. Content-Length: 0
  56. ]]>
  57. </send>
  58. <recv request="ACK"
  59. optional="false"
  60. rtd="true"
  61. crlf="true">
  62. </recv>
  63. <!-- Keep the call open for a while in case the 200 is lost to be -->
  64. <!-- able to retransmit it if we receive the BYE again. -->
  65. <pause milliseconds="4000"/>
  66. <!-- definition of the response time repartition table (unit is ms) -->
  67. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  68. <!-- definition of the call length repartition table (unit is ms) -->
  69. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  70. </scenario>