152_err_sdp_no_media.py 365 B

123456789101112131415161718192021
  1. import inc_sip as sip
  2. import inc_sdp as sdp
  3. sdp = \
  4. """
  5. v=0
  6. o=- 0 0 IN IP4 127.0.0.1
  7. s=pjmedia
  8. c=IN IP4 127.0.0.1
  9. t=0 0
  10. """
  11. pjsua_args = "--null-audio --auto-answer 200"
  12. extra_headers = ""
  13. include = []
  14. exclude = []
  15. sendto_cfg = sip.SendtoCfg("No media in SDP", pjsua_args, sdp, 400,
  16. extra_headers=extra_headers,
  17. resp_inc=include, resp_exc=exclude)