Debian Codegraph @

Xpjproject/tests/pjsua/scripts-recvfrom/209b_reg_handle_423_bad_min_expires1.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 Response with Min-Expires header that is lower than what the client
9 # had requested
10 req1 = sip.RecvfromTransaction("Initial request", 423,
11 include=["REGISTER sip"],
12 exclude=[],
13 resp_hdr=["Min-Expires: 250"],
14 expect="invalid Min-Expires"
15
16 )
17
18 recvfrom_cfg = sip.RecvfromCfg("Invalid 423 response to REGISTER",
19 pjsua, [req1])