uas-prack_fork.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. <!-- Sipp default 'uas' scenario. -->
  19. <!-- -->
  20. <scenario name="Forked INVITE, one of them require PRACK">
  21. <recv request="INVITE" crlf="true">
  22. <action>
  23. <ereg regexp="branch=([^;]*)"
  24. search_in="hdr"
  25. header="Via"
  26. assign_to="3"/>
  27. <ereg regexp="CSeq: ([0-9a-zA-Z ]*)"
  28. search_in="msg"
  29. assign_to="4"/>
  30. </action>
  31. </recv>
  32. <send>
  33. <![CDATA[
  34. SIP/2.0 100 Trying
  35. [last_Via:]
  36. [last_From:]
  37. [last_To:];tag=[call_number]
  38. [last_Call-ID:]
  39. [last_CSeq:]
  40. ]]>
  41. </send>
  42. <!-- Call leg 1: 180/Ringing -->
  43. <send>
  44. <![CDATA[
  45. SIP/2.0 180 Ringing
  46. [last_Via:]
  47. [last_From:]
  48. [last_To:];tag=1
  49. [last_Call-ID:]
  50. [last_CSeq:]
  51. Contact: <sip:WRONG_UA@192.168.0.1>
  52. ]]>
  53. </send>
  54. <!-- Call leg 2: 180/Ringing with 100rel -->
  55. <send retrans="1000">
  56. <![CDATA[
  57. SIP/2.0 180 Ringing
  58. [last_Via:]
  59. [last_From:]
  60. [last_To:];tag=2
  61. [last_Call-ID:]
  62. [last_CSeq:]
  63. Require: 100rel
  64. RSeq: 1
  65. Contact: <sip:RIGHT_UA@[local_ip]:[local_port]>
  66. ]]>
  67. </send>
  68. <!-- Expect PRACK -->
  69. <recv request="PRACK"
  70. optional="false"
  71. rtd="true"
  72. crlf="true">
  73. </recv>
  74. <!-- Send 200/OK to PRACK -->
  75. <send>
  76. <![CDATA[
  77. SIP/2.0 200 OK
  78. [last_Via:]
  79. [last_From:]
  80. [last_To:]
  81. [last_Call-ID:]
  82. [last_CSeq:]
  83. ]]>
  84. </send>
  85. <!-- Send 200/OK to INVITE -->
  86. <send retrans="500">
  87. <![CDATA[
  88. SIP/2.0 200 OK
  89. Via: SIP/2.0/UDP 127.0.0.1:5080;received=127.0.0.1;rport=5080;[$3]
  90. [last_From:]
  91. [last_To:];tag=2
  92. [last_Call-ID:]
  93. [$4]
  94. Contact: <sip:RIGHT_UA@[local_ip]:[local_port]>
  95. Content-Type: application/sdp
  96. v=0
  97. o=- 3442013205 3442013205 IN IP4 192.168.0.13
  98. s=pjsip
  99. c=IN IP4 192.168.0.13
  100. t=0 0
  101. m=audio 4002 RTP/AVP 0
  102. a=rtpmap:0 PCMU/8000
  103. ]]>
  104. </send>
  105. <!-- Receive ACK -->
  106. <recv request="ACK"
  107. optional="false"
  108. rtd="true"
  109. crlf="true">
  110. </recv>
  111. <!-- definition of the response time repartition table (unit is ms) -->
  112. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  113. <!-- definition of the call length repartition table (unit is ms) -->
  114. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  115. </scenario>