Tristan Matthews | 0a329cc | 2013-07-17 13:20:14 -0400 | [diff] [blame] | 1 | # $Id$ |
| 2 | import inc_sip as sip |
| 3 | import inc_sdp as sdp |
| 4 | |
| 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" |
| 8 | |
| 9 | # 423 Response with Min-Expires header that is lower than what the client |
| 10 | # had requested |
| 11 | req1 = 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 | |
| 19 | recvfrom_cfg = sip.RecvfromCfg("Invalid 423 response to REGISTER", |
| 20 | pjsua, [req1]) |