153_err_sdp_unsupported_codec.py 426 B

1234567891011121314151617181920212223
  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. m=video 4000 RTP/AVP 101
  11. a=rtpmap:101 my-proprietary-codec
  12. """
  13. pjsua_args = "--null-audio --auto-answer 200"
  14. extra_headers = ""
  15. include = []
  16. exclude = []
  17. sendto_cfg = sip.SendtoCfg("Unsupported codec", pjsua_args, sdp, 488,
  18. extra_headers=extra_headers,
  19. resp_inc=include, resp_exc=exclude)