1
# $Id: 206_reg_good_efailedcredential.py 2392 2008-12-22 18:54:58Z bennylp $
5
# Authentication failure test with same nonce
8
pjsua = "--null-audio --id=sip:CLIENT --registrar sip:127.0.0.1:$PORT " + \
9
"--realm=python --user=username --password=password"
11
req1 = sip.RecvfromTransaction("Initial request", 401,
12
include=["REGISTER sip"],
13
exclude=["Authorization"],
14
resp_hdr=["WWW-Authenticate: Digest realm=\"python\", nonce=\"1\""]
17
req2 = sip.RecvfromTransaction("REGISTER retry", 401,
18
include=["REGISTER sip", "Authorization", "nonce=\"1\""],
19
exclude=["Authorization:[\\s\\S]+Authorization:"],
20
resp_hdr=["WWW-Authenticate: Digest realm=\"python\", nonce=\"1\""],
21
expect="PJSIP_EFAILEDCREDENTIAL"
25
recvfrom_cfg = sip.RecvfromCfg("Authentication failure with same nonce",