uas-subscribe-notify-terminate.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. <!-- NOTIFY with instant termination: -->
  19. <!-- - UAC sends SUBSCRIBE, we reply with 200 and Expires=0 -->
  20. <!-- - we send NOTIFY with state=terminated -->
  21. <!-- -->
  22. <scenario name="NOTIFY with instant termination">
  23. <!-- By adding rrs="true" (Record Route Sets), the route sets -->
  24. <!-- are saved and used for following messages sent. Useful to test -->
  25. <!-- against stateful SIP proxies/B2BUAs. -->
  26. <recv request="SUBSCRIBE" crlf="true">
  27. <action>
  28. <ereg regexp=".*" search_in="hdr" header="From" assign_to="3"/>
  29. <ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="4,5"/>
  30. <assign assign_to="4" variable="5" />
  31. </action>
  32. </recv>
  33. <!-- The '[last_*]' keyword is replaced automatically by the -->
  34. <!-- specified header if it was present in the last message received -->
  35. <!-- (except if it was a retransmission). If the header was not -->
  36. <!-- present or if no message has been received, the '[last_*]' -->
  37. <!-- keyword is discarded, and all bytes until the end of the line -->
  38. <!-- are also discarded. -->
  39. <!-- -->
  40. <!-- If the specified header was present several times in the -->
  41. <!-- message, all occurences are concatenated (CRLF seperated) -->
  42. <!-- to be used in place of the '[last_*]' keyword. -->
  43. <send>
  44. <![CDATA[
  45. SIP/2.0 200 OK
  46. [last_Via:]
  47. [last_From:]
  48. [last_To:];tag=[call_number]
  49. [last_Call-ID:]
  50. [last_CSeq:]
  51. Contact: <sip:sipp@[local_ip]:[local_port]>
  52. Content-Length: 0
  53. Expires: 0
  54. ]]>
  55. </send>
  56. <send retrans="500">
  57. <![CDATA[
  58. NOTIFY sip:[$5] SIP/2.0
  59. Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=z9hG4bKPj01
  60. From: sipp <sip:sipp@[local_ip]>;tag=[call_number]
  61. To[$3]
  62. Call-ID: [call_id]
  63. Cseq: 1 NOTIFY
  64. Contact: sip:sipp@[local_ip]:[local_port]
  65. Max-Forwards: 70
  66. Event: presence
  67. Subscription-State: terminated;reason=timeout
  68. Content-Type: application/pidf+xml
  69. <?xml version="1.0" encoding="UTF-8"?>
  70. <presence xmlns="urn:ietf:params:xml:ns:pidf" xmlns:op="urn:oma:xml:prs:pidf:oma-pres" entity="sip:moto_red@ptt.intra.genaker.net">
  71. <tuple id="17415d5738f332a64a2f1d8cfb4ab0a5">
  72. <status>
  73. <basic>open</basic>
  74. </status>
  75. <op:willingness>
  76. <op:basic>closed</op:basic>
  77. </op:willingness>
  78. <op:barring-state>active</op:barring-state>
  79. <op:service-description>
  80. <op:service-id>org.openmobilealliance:PoC-session</op:service-id>
  81. <op:version>1.0</op:version>
  82. </op:service-description>
  83. </tuple>
  84. </presence>
  85. ]]>
  86. </send>
  87. <recv response="200">
  88. </recv>
  89. <pause milliseconds="32000"/>
  90. <!-- definition of the response time repartition table (unit is ms) -->
  91. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  92. <!-- definition of the call length repartition table (unit is ms) -->
  93. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  94. </scenario>