161_err_replaces_dlg_not_found.py 427 B

12345678910111213141516171819202122
  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=audio 4000 RTP/AVP 0
  11. """
  12. pjsua_args = "--null-audio --auto-answer 200"
  13. extra_headers = "Replaces: abcd;from_tag=1\r\n"
  14. include = []
  15. exclude = []
  16. sendto_cfg = sip.SendtoCfg("Replaced dialog not found", pjsua_args, sdp, 481,
  17. extra_headers=extra_headers,
  18. resp_inc=include, resp_exc=exclude)