uas-mwi-0.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 with immediate final notify">
  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 is final 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: terminated;reason=goinghome
  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="5000"/>
  61. <!-- definition of the response time repartition table (unit is ms) -->
  62. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  63. <!-- definition of the call length repartition table (unit is ms) -->
  64. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  65. </scenario>