uas-inv_401_retry_after_100.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. <!-- -->
  19. <scenario name="Authorization retry after 1xx response test">
  20. <!-- Wait for INVITE request -->
  21. <recv request="INVITE" crlf="true">
  22. </recv>
  23. <!-- Send 100 Trying -->
  24. <send>
  25. <![CDATA[
  26. SIP/2.0 100 Trying
  27. [last_Via:]
  28. [last_From:]
  29. [last_To:]
  30. [last_Call-ID:]
  31. [last_CSeq:]
  32. ]]>
  33. </send>
  34. <!-- Send 180 Ringing (with tag) -->
  35. <send>
  36. <![CDATA[
  37. SIP/2.0 180 Ringing
  38. [last_Via:]
  39. [last_From:]
  40. [last_To:];tag=[call_number]
  41. [last_Call-ID:]
  42. [last_CSeq:]
  43. ]]>
  44. </send>
  45. <!-- Send 401 Unauthorized -->
  46. <send retrans="500">
  47. <![CDATA[
  48. SIP/2.0 401 Unauthorized
  49. [last_Via:]
  50. [last_From:]
  51. [last_To:];tag=[call_number]
  52. [last_Call-ID:]
  53. [last_CSeq:]
  54. WWW-Authenticate: Digest realm="sipp", nonce="1234"
  55. Content-Length: 0
  56. ]]>
  57. </send>
  58. <!-- Wait for ACK -->
  59. <recv request="ACK"
  60. optional="false"
  61. rtd="true"
  62. crlf="true">
  63. </recv>
  64. <!-- Wait for INVITE retransmission -->
  65. <recv request="INVITE" crlf="true">
  66. </recv>
  67. <!-- Send 500 Test Success to terminate the call -->
  68. <send retrans="500">
  69. <![CDATA[
  70. SIP/2.0 500 Test Success
  71. [last_Via:]
  72. [last_From:]
  73. [last_To:];tag=[call_number]
  74. [last_Call-ID:]
  75. [last_CSeq:]
  76. Content-Length: 0
  77. ]]>
  78. </send>
  79. <!-- Wait for ACK -->
  80. <recv request="ACK"
  81. optional="false"
  82. rtd="true"
  83. crlf="true">
  84. </recv>
  85. <!-- definition of the response time repartition table (unit is ms) -->
  86. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  87. <!-- definition of the call length repartition table (unit is ms) -->
  88. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  89. </scenario>