summaryrefslogtreecommitdiff
path: root/tests/pjsua/scripts-recvfrom/300_timer_good.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pjsua/scripts-recvfrom/300_timer_good.py')
-rw-r--r--tests/pjsua/scripts-recvfrom/300_timer_good.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/pjsua/scripts-recvfrom/300_timer_good.py b/tests/pjsua/scripts-recvfrom/300_timer_good.py
new file mode 100644
index 0000000..4281141
--- /dev/null
+++ b/tests/pjsua/scripts-recvfrom/300_timer_good.py
@@ -0,0 +1,17 @@
+# $Id: 300_timer_good.py 3307 2010-09-08 05:38:49Z nanang $
+import inc_sip as sip
+import inc_sdp as sdp
+
+# INVITE session using session timer
+
+pjsua = "--null-audio sip:127.0.0.1:$PORT --use-timer 2 --timer-min-se 100 --timer-se 2000"
+
+req = sip.RecvfromTransaction("INVITE with session timer", 200,
+ include=["Session-Expires:\s*2000", "Min-SE:\s*100"],
+ exclude=[],
+ resp_hdr=["Session-Expires: 1000;refresher=uac"]
+ )
+
+recvfrom_cfg = sip.RecvfromCfg("INVITE session using session timer",
+ pjsua, [req])
+