Added PRACK tests and ICE with public proxy tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2059 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjsip-apps/src/test-pjsua/scripts-call/301_ice_public_a.py b/pjsip-apps/src/test-pjsua/scripts-call/301_ice_public_a.py
new file mode 100644
index 0000000..dc76b5c
--- /dev/null
+++ b/pjsip-apps/src/test-pjsua/scripts-call/301_ice_public_a.py
@@ -0,0 +1,22 @@
+# $Id:$
+#
+from inc_cfg import *
+
+# Note:
+# - need --dis-codec to make INVITE packet less than typical MTU
+uas_args = "--null-audio --id=\"<sip:test1@pjsip.org>\" --registrar=sip:sip.pjsip.org --username=test1 --password=test1 --realm=pjsip.org --proxy=\"sip:sip.pjsip.org;lr\" --rtp-port 0 --stun-srv stun.pjsip.org --use-ice --use-compact-form --max-calls 1 --dis-codec=i --dis-codec=s --dis-codec=g"
+
+uac_args = "--null-audio --id=\"<sip:test2@pjsip.org>\" --registrar=sip:sip.pjsip.org --username=test2 --password=test2 --realm=pjsip.org --proxy=\"sip:sip.pjsip.org;lr\" --rtp-port 0 --stun-srv stun.pjsip.org --use-ice --use-compact-form --max-calls 1 --dis-codec=i --dis-codec=s --dis-codec=g"
+
+test_param = TestParam(
+ "ICE via public internet",
+ [
+ InstanceParam( "callee", uas_args,
+ uri="<sip:test1@pjsip.org>",
+ have_reg=True, have_publish=False),
+ InstanceParam( "caller", uac_args,
+ uri="<sip:test2@pjsip.org>",
+ have_reg=True, have_publish=False),
+ ]
+ )
+
diff --git a/pjsip-apps/src/test-pjsua/scripts-call/301_ice_public_b.py b/pjsip-apps/src/test-pjsua/scripts-call/301_ice_public_b.py
new file mode 100644
index 0000000..59af252
--- /dev/null
+++ b/pjsip-apps/src/test-pjsua/scripts-call/301_ice_public_b.py
@@ -0,0 +1,25 @@
+# $Id:$
+#
+from inc_cfg import *
+
+# This test:
+# to make call with ICE but without STUN.
+
+# Note:
+# - need --dis-codec to make INVITE packet less than typical MTU
+uas_args = "--null-audio --id=\"<sip:test1@pjsip.org>\" --registrar=sip:sip.pjsip.org --username=test1 --password=test1 --realm=pjsip.org --proxy=\"sip:sip.pjsip.org;lr\" --rtp-port 0 --use-ice --use-compact-form --max-calls 1 --dis-codec=i --dis-codec=s --dis-codec=g --log-file callee.log"
+
+uac_args = "--null-audio --id=\"<sip:test2@pjsip.org>\" --registrar=sip:sip.pjsip.org --username=test2 --password=test2 --realm=pjsip.org --proxy=\"sip:sip.pjsip.org;lr\" --rtp-port 0 --use-ice --use-compact-form --max-calls 1 --dis-codec=i --dis-codec=s --dis-codec=g --log-file caller.log"
+
+test_param = TestParam(
+ "ICE via public internet with no STUN",
+ [
+ InstanceParam( "callee", uas_args,
+ uri="<sip:test1@pjsip.org>",
+ have_reg=True, have_publish=False),
+ InstanceParam( "caller", uac_args,
+ uri="<sip:test2@pjsip.org>",
+ have_reg=True, have_publish=False),
+ ]
+ )
+
diff --git a/pjsip-apps/src/test-pjsua/scripts-call/350_prack_a.py b/pjsip-apps/src/test-pjsua/scripts-call/350_prack_a.py
new file mode 100644
index 0000000..01edee0
--- /dev/null
+++ b/pjsip-apps/src/test-pjsua/scripts-call/350_prack_a.py
@@ -0,0 +1,12 @@
+# $Id:$
+#
+from inc_cfg import *
+
+# TCP call
+test_param = TestParam(
+ "Callee requires PRACK",
+ [
+ InstanceParam("callee", "--null-audio --max-calls=1 --use-100rel"),
+ InstanceParam("caller", "--null-audio --max-calls=1")
+ ]
+ )
diff --git a/pjsip-apps/src/test-pjsua/scripts-call/350_prack_b.py b/pjsip-apps/src/test-pjsua/scripts-call/350_prack_b.py
new file mode 100644
index 0000000..bb8fee7
--- /dev/null
+++ b/pjsip-apps/src/test-pjsua/scripts-call/350_prack_b.py
@@ -0,0 +1,12 @@
+# $Id:$
+#
+from inc_cfg import *
+
+# TCP call
+test_param = TestParam(
+ "Caller requires PRACK",
+ [
+ InstanceParam("callee", "--null-audio --max-calls=1"),
+ InstanceParam("caller", "--null-audio --max-calls=1 --use-100rel")
+ ]
+ )