Chinaunix首页 | 论坛 | 博客
  • 博客访问: 69595
  • 博文数量: 11
  • 博客积分: 286
  • 博客等级: 二等列兵
  • 技术积分: 136
  • 用 户 组: 普通用户
  • 注册时间: 2011-05-03 15:31
文章分类

全部博文(11)

文章存档

2015年(5)

2014年(3)

2011年(3)

我的朋友

分类: Python/Ruby

2011-05-07 16:06:46

  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <!DOCTYPE scenario SYSTEM "sipp.dtd">

  3. <scenario name="Basic UAS responder">

  4. <recv request="INVITE" crlf="true">
  5.   <action>
  6.         <assign assign_to="1" value="1"/>
  7.   </action>
  8. </recv>

  9. <!-- 200 -->
  10. <nop next="1" test="1" chance="0.6"></nop>
  11. <!-- 486 -->
  12. <nop next="2" test="1" chance="0.2"></nop>
  13. <!-- 404 -->
  14. <nop next="3" test="1" chance="0.25"></nop>
  15. <!-- 408 -->
  16. <nop next="4" test="1" chance="0.333"></nop>
  17. <!-- 503 -->
  18. <nop next="5" test="1" chance="0.5"></nop>
  19. <!-- 403 -->
  20. <nop next="6" test="1" chance="1"></nop>

  21. <label id="2"/>
  22. <send next="9">
  23. <![CDATA[

  24.       SIP/2.0 486 Because
  25.       [last_Via:]
  26.       [last_From:]
  27.       [last_To:];tag=[call_number]
  28.       [last_Call-ID:]
  29.       [last_CSeq:]
  30.       Contact: <sip:[local_ip]:[local_port];transport=[transport]>
  31.       Content-Length: 0

  32.     ]]>
  33. </send>

  34. <label id="3"/>
  35. <send next="9">
  36. <![CDATA[

  37.       SIP/2.0 404 Because
  38.       [last_Via:]
  39.       [last_From:]
  40.       [last_To:];tag=[call_number]
  41.       [last_Call-ID:]
  42.       [last_CSeq:]
  43.       Contact: <sip:[local_ip]:[local_port];transport=[transport]>
  44.       Content-Length: 0

  45.     ]]>
  46. </send>

  47. <label id="4"/>
  48. <send next="9">
  49. <![CDATA[

  50.       SIP/2.0 408 Because
  51.       [last_Via:]
  52.       [last_From:]
  53.       [last_To:];tag=[call_number]
  54.       [last_Call-ID:]
  55.       [last_CSeq:]
  56.       Contact: <sip:[local_ip]:[local_port];transport=[transport]>
  57.       Content-Length: 0

  58.     ]]>
  59. </send>

  60. <label id="5"/>
  61. <send next="9">
  62. <![CDATA[

  63.       SIP/2.0 503 Because
  64.       [last_Via:]
  65.       [last_From:]
  66.       [last_To:];tag=[call_number]
  67.       [last_Call-ID:]
  68.       [last_CSeq:]
  69.       Contact: <sip:[local_ip]:[local_port];transport=[transport]>
  70.       Content-Length: 0

  71.     ]]>
  72. </send>

  73. <label id="6"/>
  74. <send next="9">
  75. <![CDATA[

  76.       SIP/2.0 403 Because
  77.       [last_Via:]
  78.       [last_From:]
  79.       [last_To:];tag=[call_number]
  80.       [last_Call-ID:]
  81.       [last_CSeq:]
  82.       Contact: <sip:[local_ip]:[local_port];transport=[transport]>
  83.       Content-Length: 0

  84.     ]]>
  85. </send>


  86. <label id="1"/>
  87. <send>
  88. <![CDATA[

  89.       SIP/2.0 100 Trying
  90.       [last_Via:]
  91.       [last_From:]
  92.       [last_To:];tag=[call_number]
  93.       [last_Call-ID:]
  94.       [last_CSeq:]
  95.       Contact: <sip:[local_ip]:[local_port];transport=[transport]>
  96.       Content-Length: 0

  97.     ]]>
  98. </send>

  99. <nop next="10" test="1" chance="0.6"></nop>
  100. <nop next="11" test="1" chance="0.6"></nop>
  101. <nop next="12" test="1" chance="1"></nop>


  102. <label id="10"/>
  103. <send next="12">
  104. <![CDATA[

  105.       SIP/2.0 180 Ringing
  106.       [last_Via:]
  107.       [last_From:]
  108.       [last_To:];tag=[call_number]
  109.       [last_Call-ID:]
  110.       [last_CSeq:]
  111.       Contact: <sip:[local_ip]:[local_port];transport=[transport]>
  112.       Content-Length: 0

  113.     ]]>
  114. </send>

  115. <label id="11"/>
  116. <send>
  117.     <![CDATA[

  118.       SIP/2.0 183 Session Progress
  119.       [last_Via:]
  120.       [last_From:]
  121.       [last_To:];tag=[call_number]
  122.       [last_Call-ID:]
  123.       [last_CSeq:]
  124.       Contact: <sip:[local_ip]:[local_port];transport=[transport]>
  125.       Content-Type: application/sdp
  126.       Content-Length: [len]

  127.       v=0
  128.       o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
  129.       s=-
  130.       c=IN IP[media_ip_type] [media_ip]
  131.       t=0 0
  132.       m=audio [media_port] RTP/AVP 0
  133.       a=rtpmap:0 PCMU/8000

  134.     ]]>
  135. </send>

  136. <label id="12"/>
  137. <send retrans="500">
  138.     <![CDATA[

  139.       SIP/2.0 200 OK
  140.       [last_Via:]
  141.       [last_From:]
  142.       [last_To:];tag=[call_number]
  143.       [last_Call-ID:]
  144.       [last_CSeq:]
  145.       Contact: <sip:[local_ip]:[local_port];transport=[transport]>
  146.       Content-Type: application/sdp
  147.       Content-Length: [len]

  148.       v=0
  149.       o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
  150.       s=-
  151.       c=IN IP[media_ip_type] [media_ip]
  152.       t=0 0
  153.       m=audio [media_port] RTP/AVP 0
  154.       a=rtpmap:0 PCMU/8000

  155.     ]]>
  156. </send>

  157. <recv request="ACK"
  158.       optional="true"
  159.       rtd="true"
  160.       crlf="true">
  161. </recv>

  162. <recv request="BYE">
  163. </recv>

  164. <send next="99">
  165.     <![CDATA[

  166.       SIP/2.0 200 OK
  167.       [last_Via:]
  168.       [last_From:]
  169.       [last_To:]
  170.       [last_Call-ID:]
  171.       [last_CSeq:]
  172.       Contact: <sip:[local_ip]:[local_port];transport=[transport]>
  173.       Content-Length: 0

  174.     ]]>
  175. </send>

  176. <label id="9"/>

  177. <recv request="ACK" optional="true" rtd="true" crlf="true">
  178. </recv>

  179. <label id="99"/>

  180. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>

  181. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>

  182. </scenario>
阅读(1293) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:postgresql触发器记录表记录的更改

给主人留下些什么吧!~~