Debian Codegraph @

Xpjproject/tests/pjsua/scripts-recvfrom/209c_reg_handle_423_bad_min_expires2.py

raw symbols SCIP
1 import inc_sip as sip
2 import inc_sdp as sdp
3
4 pjsua = "--null-audio --id=sip:CLIENT --registrar sip:127.0.0.1:$PORT " + \
5 "--realm=python --user=username --password=password " + \
6 "--auto-update-nat=0 --reg-timeout 300"
7
8 # 423 without Min-Expires. PJSIP would retry with Expires: 3601
9 req1 = sip.RecvfromTransaction("Initial request", 423,
10 include=["REGISTER sip"],
11 exclude=[],
12 resp_hdr=[]
13 )
14
15 # Another 423, still without Min-Expires
16 req2 = sip.RecvfromTransaction("Retry with guessed Expires header", 423,
17 include=["REGISTER sip", "Expires: 3601"],
18 exclude=[],
19 resp_hdr=[],
20 expect="without Min-Expires header is invalid"
21 )
22
23 recvfrom_cfg = sip.RecvfromCfg("Invalid 423 response to REGISTER",
24 pjsua, [req1, req2])