uas-early-bye.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <!DOCTYPE scenario SYSTEM "sipp.dtd">
  3. <scenario name="Early BYE">
  4. <recv request="INVITE" crlf="true">
  5. <action>
  6. <ereg regexp=".*" search_in="hdr" header="From" assign_to="3"/>
  7. <ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="4,5"/>
  8. <assign assign_to="4" variable="5" />
  9. </action>
  10. </recv>
  11. <send>
  12. <![CDATA[
  13. SIP/2.0 100 Trying
  14. [last_Via:]
  15. [last_From:]
  16. [last_To:]
  17. [last_Call-ID:]
  18. [last_CSeq:]
  19. Content-Length: 0
  20. ]]>
  21. </send>
  22. <send>
  23. <![CDATA[
  24. SIP/2.0 180 Ringing
  25. [last_Via:]
  26. [last_From:]
  27. [last_To:];tag=[call_number]
  28. [last_Call-ID:]
  29. [last_CSeq:]
  30. Contact: sip:sipp@[local_ip]:[local_port]
  31. Content-Length: 0
  32. ]]>
  33. </send>
  34. <send retrans="500">
  35. <![CDATA[
  36. BYE sip:[$5] SIP/2.0
  37. Via: SIP/2.0/[transport] [local_ip]:[local_port]
  38. From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
  39. To[$3]
  40. Call-ID: [call_id]
  41. Cseq: 1 BYE
  42. Contact: sip:sipp@[local_ip]:[local_port]
  43. Max-Forwards: 70
  44. Content-Length: 0
  45. ]]>
  46. </send>
  47. <recv response="200">
  48. </recv>
  49. <!-- definition of the response time repartition table (unit is ms) -->
  50. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  51. <!-- definition of the call length repartition table (unit is ms) -->
  52. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  53. </scenario>