| 1 | import inc_sip as sip |
| 2 | import inc_sdp as sdp |
| 3 | |
| 4 | # INVITE session using session timer |
| 5 | |
| 6 | pjsua = "--null-audio sip:127.0.0.1:$PORT --use-timer 2 --timer-min-se 100 --timer-se 2000 --no-tcp" |
| 7 | |
| 8 | req = sip.RecvfromTransaction("INVITE with session timer", 200, |
| 9 | include=["Session-Expires:\s*2000", "Min-SE:\s*100"], |
| 10 | exclude=[], |
| 11 | resp_hdr=["Session-Expires: 1000;refresher=uac"] |
| 12 | ) |
| 13 | |
| 14 | recvfrom_cfg = sip.RecvfromCfg("INVITE session using session timer", |
| 15 | pjsua, [req]) |
| 16 |