blob: 83a4074c53f6940dcdce5ac21a3fc2d171afabda [file] [log] [blame]
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001# $Id$
2import 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=python --user=username --password=password " + \
7 "--auto-update-nat=0 --reg-timeout 300"
8
9# 423 Response with Min-Expires header that is lower than what the client
10# had requested
11req1 = sip.RecvfromTransaction("Initial request", 423,
12 include=["REGISTER sip"],
13 exclude=[],
14 resp_hdr=["Min-Expires: 250"],
15 expect="invalid Min-Expires"
16
17 )
18
19recvfrom_cfg = sip.RecvfromCfg("Invalid 423 response to REGISTER",
20 pjsua, [req1])