strict-route.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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="Strict route test">
  21. <recv request="INVITE" crlf="true">
  22. </recv>
  23. <send>
  24. <![CDATA[
  25. SIP/2.0 100 Trying
  26. [last_Via:]
  27. [last_From:]
  28. [last_To:];tag=[call_number]
  29. [last_Call-ID:]
  30. [last_CSeq:]
  31. ]]>
  32. </send>
  33. <send retrans="500">
  34. <![CDATA[
  35. SIP/2.0 407 Proxy Authenticate
  36. [last_Via:]
  37. [last_From:]
  38. [last_To:];tag=[call_number]
  39. [last_Call-ID:]
  40. [last_CSeq:]
  41. Proxy-Authenticate: DIGEST realm="test", nonce="12345", algorithm=MD5
  42. ]]>
  43. </send>
  44. <recv request="ACK"
  45. optional="false"
  46. rtd="true"
  47. crlf="true">
  48. </recv>
  49. <recv request="INVITE" crlf="true">
  50. </recv>
  51. <send>
  52. <![CDATA[
  53. SIP/2.0 100 Trying
  54. [last_Via:]
  55. [last_From:]
  56. [last_To:];tag=[call_number]
  57. [last_Call-ID:]
  58. [last_CSeq:]
  59. ]]>
  60. </send>
  61. <send>
  62. <![CDATA[
  63. SIP/2.0 180 Ringing
  64. [last_Via:]
  65. [last_From:]
  66. [last_To:];tag=[call_number]
  67. [last_Call-ID:]
  68. [last_CSeq:]
  69. ]]>
  70. </send>
  71. <send>
  72. <![CDATA[
  73. SIP/2.0 183 progress
  74. [last_Via:]
  75. [last_From:]
  76. [last_To:];tag=[call_number]
  77. [last_Call-ID:]
  78. [last_CSeq:]
  79. Contact: <sip:target@[local_ip]>
  80. Record-route: <sip:proxy@[local_ip]:[local_port]>
  81. Content-Type: application/sdp
  82. v=0
  83. o=- 3442013205 3442013205 IN IP4 [local_ip]
  84. s=pjsip
  85. c=IN IP4 [local_ip]
  86. t=0 0
  87. m=audio 4002 RTP/AVP 0
  88. a=rtpmap:0 PCMU/8000
  89. ]]>
  90. </send>
  91. <send retrans="500">
  92. <![CDATA[
  93. SIP/2.0 200 OK
  94. [last_Via:]
  95. [last_From:]
  96. [last_To:];tag=[call_number]
  97. [last_Call-ID:]
  98. [last_CSeq:]
  99. Contact: <sip:target@[local_ip]>
  100. Record-route: <sip:proxy@[local_ip]:[local_port];maddr=[local_ip]>
  101. Content-Type: application/sdp
  102. v=0
  103. o=- 3442013205 3442013205 IN IP4 [local_ip]
  104. s=pjsip
  105. c=IN IP4 [local_ip]
  106. t=0 0
  107. m=audio 4002 RTP/AVP 0
  108. a=rtpmap:0 PCMU/8000
  109. ]]>
  110. </send>
  111. <recv request="ACK"
  112. optional="false"
  113. rtd="true"
  114. crlf="true">
  115. </recv>
  116. <recv request="BYE" crlf="true">
  117. </recv>
  118. <send>
  119. <![CDATA[
  120. SIP/2.0 200 OK
  121. [last_Via:]
  122. [last_From:]
  123. [last_To:];tag=[call_number]
  124. [last_Call-ID:]
  125. [last_CSeq:]
  126. ]]>
  127. </send>
  128. <!-- Keep the call open for a while in case the 200 is lost to be -->
  129. <!-- able to retransmit it if we receive the BYE again. -->
  130. <pause milliseconds="1000"/>
  131. <!-- definition of the response time repartition table (unit is ms) -->
  132. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  133. <!-- definition of the call length repartition table (unit is ms) -->
  134. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  135. </scenario>