blob: 199493ec00e048491daaaab68ff4414c1f19554b [file] [log] [blame]
Benny Prijono945aeb22008-12-22 18:54:58 +00001# $Id$
Benny Prijonoe9a82242008-07-07 20:14:41 +00002import inc_sip as sip
3import inc_sdp as sdp
4
5pjsua = "--null-audio --id=sip:CLIENT --registrar sip:127.0.0.1:$PORT " + \
6 "--realm=provider --user=username --password=password"
7
8req1 = sip.RecvfromTransaction("", 401,
9 include=["REGISTER sip"],
10 exclude=["Authorization"],
11 resp_hdr=["WWW-Authenticate: Digest realm=\"python\", nonce=\"1234\""],
12 expect="PJSIP_ENOCREDENTIAL"
13 )
14
15recvfrom_cfg = sip.RecvfromCfg("Failed registration because of realm test",
16 pjsua, [req1])