uas-mwi.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. <scenario name="MWI server">
  19. <recv request="SUBSCRIBE" crlf="true">
  20. <action>
  21. <ereg regexp=".*" search_in="hdr" header="From" assign_to="3"/>
  22. <ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="4,5"/>
  23. <assign assign_to="4" variable="5" />
  24. </action>
  25. </recv>
  26. <send>
  27. <![CDATA[
  28. SIP/2.0 200 OK
  29. [last_Via:]
  30. [last_From:]
  31. [last_To:];tag=[call_number]
  32. [last_Call-ID:]
  33. [last_CSeq:]
  34. Contact: <sip:sipp@[local_ip]:[local_port]>
  35. Content-Length: 0
  36. Expires: 600
  37. ]]>
  38. </send>
  39. <!-- initial notify -->
  40. <send retrans="500">
  41. <![CDATA[
  42. NOTIFY sip:[$5] SIP/2.0
  43. Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch]
  44. From: sipp <sip:sipp@[local_ip]>;tag=[call_number]
  45. To[$3]
  46. Call-ID: [call_id]
  47. Cseq: 1 NOTIFY
  48. Contact: sip:sipp@[local_ip]:[local_port]
  49. Max-Forwards: 70
  50. Event: message-summary
  51. Subscription-State: active;expires=50
  52. Content-Type: application/simple-message-summary
  53. Content-Length: [len]
  54. Messages-Waiting: yes
  55. Voice-Message: 4/8 (1/2)
  56. ]]>
  57. </send>
  58. <recv response="200">
  59. </recv>
  60. <pause milliseconds="2000"/>
  61. <!-- terminate subscription -->
  62. <send retrans="500">
  63. <![CDATA[
  64. NOTIFY sip:[$5] SIP/2.0
  65. Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch]
  66. From: sipp <sip:sipp@[local_ip]>;tag=[call_number]
  67. To[$3]
  68. Call-ID: [call_id]
  69. Cseq: 2 NOTIFY
  70. Contact: sip:sipp@[local_ip]:[local_port]
  71. Max-Forwards: 70
  72. Event: message-summary
  73. Subscription-State: terminated;reason=noresource
  74. Content-Type: application/simple-message-summary
  75. Content-Length: [len]
  76. Messages-Waiting: yes
  77. Voice-Message: 4/8 (1/2)
  78. ]]>
  79. </send>
  80. <recv response="200">
  81. </recv>
  82. <!-- definition of the response time repartition table (unit is ms) -->
  83. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  84. <!-- definition of the call length repartition table (unit is ms) -->
  85. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  86. </scenario>