200_reg_good_enocredentiall.py 420 B

1234567891011121314
  1. import inc_sip as sip
  2. import inc_sdp as sdp
  3. pjsua = "--null-audio --id=sip:CLIENT --registrar sip:127.0.0.1:$PORT"
  4. req1 = sip.RecvfromTransaction("", 401,
  5. include=["REGISTER sip"],
  6. exclude=["Authorization"],
  7. resp_hdr=["WWW-Authenticate: Digest realm=\"python\", nonce=\"1234\""],
  8. expect="PJSIP_ENOCREDENTIAL"
  9. )
  10. recvfrom_cfg = sip.RecvfromCfg("Failed registration test",
  11. pjsua, [req1])