uas-forked-200.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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="1,2"/>
  27. <ereg regexp=".*"
  28. search_in="hdr"
  29. header="CSeq:"
  30. assign_to="cseq" />
  31. <ereg regexp=".*"
  32. search_in="hdr"
  33. header="To:"
  34. assign_to="to" />
  35. <assign assign_to="1" variable="2"/>
  36. </action>
  37. </recv>
  38. <send>
  39. <![CDATA[
  40. SIP/2.0 100 Trying
  41. [last_Via:]
  42. [last_From:]
  43. [last_To:];tag=[call_number]
  44. [last_Call-ID:]
  45. [last_CSeq:]
  46. ]]>
  47. </send>
  48. <!-- Call leg 1: 200/OK -->
  49. <send>
  50. <![CDATA[
  51. SIP/2.0 200 OK
  52. Via: SIP/2.0/UDP 127.0.0.1;received=127.0.0.1;rport=5080;branch=[$2]
  53. [last_From:]
  54. [last_To:];tag=UA_1
  55. [last_Call-ID:]
  56. [last_CSeq:]
  57. Contact: <sip:UA_1@[local_ip]:[local_port]>
  58. Content-Type: application/sdp
  59. v=0
  60. o=- 3442013205 3442013205 IN IP4 192.168.0.13
  61. s=pjsip
  62. c=IN IP4 192.168.0.13
  63. t=0 0
  64. m=audio 4002 RTP/AVP 0
  65. a=rtpmap:0 PCMU/8000
  66. ]]>
  67. </send>
  68. <!-- Receive ACK -->
  69. <recv request="ACK" optional="false">
  70. </recv>
  71. <!-- Call leg 2: 200/OK -->
  72. <send>
  73. <![CDATA[
  74. SIP/2.0 200 OK
  75. Via: SIP/2.0/UDP 127.0.0.1;received=127.0.0.1;rport=5080;branch=[$2]
  76. [last_From:]
  77. To:[$to];tag=UA_2
  78. [last_Call-ID:]
  79. CSeq:[$cseq]
  80. Contact: <sip:UA_2@[local_ip]:[local_port]>
  81. Content-Type: application/sdp
  82. v=0
  83. o=- 3442013205 3442013205 IN IP4 192.168.0.13
  84. s=pjsip
  85. c=IN IP4 192.168.0.13
  86. t=0 0
  87. m=audio 4002 RTP/AVP 0
  88. a=rtpmap:0 PCMU/8000
  89. ]]>
  90. </send>
  91. <!-- Receive ACK -->
  92. <recv request="ACK" optional="false">
  93. </recv>
  94. <!-- Receive BYE (for leg 2) -->
  95. <recv request="BYE" optional="false">
  96. </recv>
  97. <!-- Send 200/OK to BYE -->
  98. <send>
  99. <![CDATA[
  100. SIP/2.0 200 OK
  101. [last_Via:]
  102. [last_From:]
  103. [last_To:]
  104. [last_Call-ID:]
  105. [last_CSeq:]
  106. ]]>
  107. </send>
  108. <!-- definition of the response time repartition table (unit is ms) -->
  109. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  110. <!-- definition of the call length repartition table (unit is ms) -->
  111. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  112. </scenario>