uas-auth-two-algo.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <!DOCTYPE scenario SYSTEM "sipp.dtd">
  3. <scenario name="Basic UAS responder">
  4. <recv request="REGISTER" crlf="true">
  5. </recv>
  6. <send>
  7. <![CDATA[
  8. SIP/2.0 100 Trying
  9. [last_Via:];received=1.1.1.1;rport=1111
  10. [last_From:]
  11. [last_To:];tag=[call_number]
  12. [last_Call-ID:]
  13. [last_CSeq:]
  14. Content-Length: 0
  15. ]]>
  16. </send>
  17. <send>
  18. <![CDATA[
  19. SIP/2.0 401 Unauthorized
  20. [last_Via:];received=1.1.1.1;rport=1111
  21. [last_From:]
  22. [last_To:];tag=[call_number]
  23. [last_Call-ID:]
  24. [last_CSeq:]
  25. WWW-Authenticate: Digest realm="sip.linphone.org", nonce="PARV4gAAAADgw3asAADW8zsi5BEAAAAA", opaque="+GNywA==", algorithm=SHA-256, qop="auth"
  26. WWW-Authenticate: Digest realm="sip.linphone.org", nonce="PARV4gAAAADgw3asAADW8zsi5BEAAAAA", opaque="+GNywA==", algorithm=MD5, qop="auth"
  27. WWW-Authenticate: Digest realm="sip.linphone.org", nonce="PARV4gAAAADgw3asAADW8zsi5BEAAAAA", opaque="+GNywA==", algorithm=MD2, qop="auth"
  28. Content-Length: 0
  29. ]]>
  30. </send>
  31. <recv request="REGISTER" crlf="true">
  32. <action>
  33. <ereg regexp=".*"
  34. search_in="hdr"
  35. header="Authorization:"
  36. assign_to="have_auth" />
  37. </action>
  38. </recv>
  39. <nop next="resp_okay" test="have_auth" />
  40. <send next="end">
  41. <![CDATA[
  42. SIP/2.0 403 no auth
  43. [last_Via:];received=1.1.1.1;rport=1111
  44. [last_From:]
  45. [last_To:];tag=[call_number]
  46. [last_Call-ID:]
  47. [last_CSeq:]
  48. [last_Contact:]
  49. Content-Length: 0
  50. ]]>
  51. </send>
  52. <label id="resp_okay" />
  53. <send>
  54. <![CDATA[
  55. SIP/2.0 200 OK
  56. [last_Via:];received=1.1.1.1;rport=1111
  57. [last_From:]
  58. [last_To:];tag=[call_number]
  59. [last_Call-ID:]
  60. [last_CSeq:]
  61. [last_Contact:]
  62. Content-Length: 0
  63. ]]>
  64. </send>
  65. <label id="end" />
  66. <!-- definition of the response time repartition table (unit is ms) -->
  67. <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  68. <!-- definition of the call length repartition table (unit is ms) -->
  69. <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
  70. </scenario>