155_err_sdp_bad_syntax.py 360 B

12345678910111213141516171819202122
  1. import inc_sip as sip
  2. import inc_sdp as sdp
  3. sdp = \
  4. """
  5. v=
  6. o=
  7. s=
  8. c=
  9. t=
  10. a=
  11. """
  12. pjsua_args = "--null-audio --auto-answer 200"
  13. extra_headers = ""
  14. include = [ "Warning: " ] # better have Warning header
  15. exclude = []
  16. sendto_cfg = sip.SendtoCfg("Bad SDP syntax", pjsua_args, sdp, 400,
  17. extra_headers=extra_headers,
  18. resp_inc=include, resp_exc=exclude)