361_non_sip_uri.py 677 B

12345678910111213141516171819202122232425
  1. import inc_sip as sip
  2. import inc_sdp as sdp
  3. # No SIP URI in Contact header
  4. #
  5. complete_msg = \
  6. """INVITE sip:localhost SIP/2.0
  7. Via: SIP/2.0/UDP 192.168.0.14:5060;rport;branch=z9hG4bKPj9db9
  8. Max-Forwards: 70
  9. From: <sip:192.168.0.14>;tag=08cd5bfc2d8a4fddb1f5e59c6961d298
  10. To: <sip:localhost>
  11. Call-ID: 3373d9eb32aa458db7e69c7ea51e0bd7
  12. CSeq: 0 INVITE
  13. Contact: mailto:dontspam@pjsip.org
  14. Contact: <mailto:dontspam@pjsip.org>
  15. Contact: http://www.pjsip.org/the%20path.cgi?pname=pvalue
  16. User-Agent: PJSUA v0.9.0-trunk/win32
  17. Content-Length: 0
  18. """
  19. sendto_cfg = sip.SendtoCfg( "No SIP URI in Contact",
  20. "--null-audio --auto-answer 200",
  21. "", 500, complete_msg=complete_msg)