Alexandre Lision | 8af73cb | 2013-12-10 14:11:20 -0500 | [diff] [blame] | 1 | # $Id$ |
2 | import inc_sip as sip | ||||
3 | import inc_sdp as sdp | ||||
4 | |||||
5 | pjsua = "--null-audio --id=sip:CLIENT --registrar sip:127.0.0.1:$PORT" | ||||
6 | |||||
7 | req1 = sip.RecvfromTransaction("", 401, | ||||
8 | include=["REGISTER sip"], | ||||
9 | exclude=["Authorization"], | ||||
10 | resp_hdr=["WWW-Authenticate: Digest realm=\"python\", nonce=\"1234\""], | ||||
11 | expect="PJSIP_ENOCREDENTIAL" | ||||
12 | ) | ||||
13 | |||||
14 | recvfrom_cfg = sip.RecvfromCfg("Failed registration test", | ||||
15 | pjsua, [req1]) |