1
# $Id: 209c_reg_handle_423_bad_min_expires2.py 3105 2010-02-23 11:03:07Z bennylp $
5
pjsua = "--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"
9
# 423 without Min-Expires. PJSIP would retry with Expires: 3601
10
req1 = sip.RecvfromTransaction("Initial request", 423,
11
include=["REGISTER sip"],
16
# Another 423, still without Min-Expires
17
req2 = sip.RecvfromTransaction("Retry with guessed Expires header", 423,
18
include=["REGISTER sip", "Expires: 3601"],
21
expect="without Min-Expires header is invalid"
24
recvfrom_cfg = sip.RecvfromCfg("Invalid 423 response to REGISTER",