blob: 378ea2832541bdef3134b09eb57af5bf8b8bbaaf [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 without Min-Expires. PJSIP would retry with Expires: 3601
10req1 = sip.RecvfromTransaction("Initial request", 423,
11 include=["REGISTER sip"],
12 exclude=[],
13 resp_hdr=[]
14 )
15
16# Another 423, still without Min-Expires
17req2 = sip.RecvfromTransaction("Retry with guessed Expires header", 423,
18 include=["REGISTER sip", "Expires: 3601"],
19 exclude=[],
20 resp_hdr=[],
21 expect="without Min-Expires header is invalid"
22 )
23
24recvfrom_cfg = sip.RecvfromCfg("Invalid 423 response to REGISTER",
25 pjsua, [req1, req2])