reg_auth.xml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <scenario name="register_client">
  3. <send retrans="500">
  4. <![CDATA[
  5. REGISTER sip:localhost:5059 SIP/2.0
  6. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  7. From: <sip:alice@localhost>;tag=[call_number]
  8. To: <sip:alice@localhost>
  9. Call-ID: [call_id]
  10. CSeq: 1 REGISTER
  11. Contact: sip:alice@[local_ip]:[local_port]
  12. Max-Forwards: 5
  13. Expires: 1800
  14. User-Agent: SIPp/Linux
  15. Content-Length: 0
  16. ]]>
  17. </send>
  18. <recv response="401" auth="true">
  19. </recv>
  20. <send retrans="500">
  21. <![CDATA[
  22. REGISTER sip:localhost:5059 SIP/2.0
  23. Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
  24. From: <sip:alice@localhost>;tag=[call_number]
  25. To: <sip:alice@localhost>
  26. Call-ID: [call_id]
  27. CSeq: 2 REGISTER
  28. Contact: sip:alice@[local_ip]:[local_port]
  29. [authentication username=alice password=alice realm=localhost];
  30. Max-Forwards: 5
  31. Expires: 1800
  32. User-Agent: SIPp/Linux
  33. Content-Length: 0
  34. ]]>
  35. </send>
  36. <recv response="200">
  37. </recv>
  38. </scenario>