uas-timer-update.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. <!-- Session timer where UAS incidates support for UPDATE. -->
  19. <!-- In this case, UAC will first use empty UPDATE, which we -->
  20. <!-- will reply with 400. UAC MUST retry sending UPDATE with SDP. -->
  21. <scenario name="Basic UAS responder">
  22. <recv request="INVITE" crlf="true">
  23. </recv>
  24. <send retrans="500">
  25. <![CDATA[
  26. SIP/2.0 200 OK
  27. [last_Via:]
  28. [last_From:]
  29. [last_To:];tag=[call_number]
  30. [last_Call-ID:]
  31. [last_CSeq:]
  32. Contact: <sip:[local_ip]:[local_port];transport=[transport]>
  33. Allow: UPDATE, INVITE
  34. Require: timer
  35. Session-Expires: 90;refresher=uac
  36. Content-Type: application/sdp
  37. Content-Length: [len]
  38. v=0
  39. o=Some-UserAgent 68 210 IN IP4 [local_ip]
  40. s=SIP Call
  41. c=IN IP4 [local_ip]
  42. t=0 0
  43. m=audio 17294 RTP/AVP 0 101
  44. c=IN IP4 [local_ip]
  45. a=rtpmap:101 telephone-event/8000
  46. a=fmtp:101 0-16
  47. ]]>
  48. </send>
  49. <recv request="ACK"
  50. optional="true"
  51. rtd="true"
  52. crlf="true">
  53. </recv>
  54. <recv request="UPDATE" crlf="true">
  55. </recv>
  56. <send>
  57. <![CDATA[
  58. SIP/2.0 400 Want SDP Body
  59. [last_Via:]
  60. [last_From:]
  61. [last_To:];tag=[call_number]
  62. [last_Call-ID:]
  63. [last_CSeq:]
  64. Contact: <sip:[local_ip]:[local_port];transport=[transport]>
  65. Allow: INVITE
  66. Require: timer
  67. Session-Expires: 90;refresher=uac
  68. Content-Length: 0
  69. ]]>
  70. </send>
  71. <recv request="UPDATE" crlf="true">
  72. </recv>
  73. <send>
  74. <![CDATA[
  75. SIP/2.0 200 OK
  76. [last_Via:]
  77. [last_From:]
  78. [last_To:];tag=[call_number]
  79. [last_Call-ID:]
  80. [last_CSeq:]
  81. Contact: <sip:[local_ip]:[local_port];transport=[transport]>
  82. Allow: INVITE
  83. Require: timer
  84. Session-Expires: 90;refresher=uac
  85. Content-Type: application/sdp
  86. Content-Length: [len]
  87. v=0
  88. o=Some-UserAgent 68 210 IN IP4 [local_ip]
  89. s=SIP Call
  90. c=IN IP4 [local_ip]
  91. t=0 0
  92. m=audio 17294 RTP/AVP 0 101
  93. c=IN IP4 [local_ip]
  94. a=rtpmap:101 telephone-event/8000
  95. a=fmtp:101 0-16
  96. ]]>
  97. </send>
  98. <!-- Keep the call open for a while in case the 200 is lost to be -->
  99. <!-- able to retransmit it if we receive the BYE again. -->
  100. <pause milliseconds="4000"/>
  101. <!-- definition of the response time repartition table (unit is ms) -->
  102. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  103. <!-- definition of the call length repartition table (unit is ms) -->
  104. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  105. </scenario>