initial commit
This commit is contained in:
commit
636959b37b
2474 files changed
+1343178
No files matched your search
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# Simple call
|
||||
test_param = TestParam(
|
||||
"Basic call",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
test_param= TestParam(
|
||||
"Callee=no SRTP, caller=optional SRTP",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --use-srtp=1 --srtp-secure=0 --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
test_param = TestParam(
|
||||
"Callee=no SRTP, caller=optional (with duplicated offer) SRTP",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-srtp=0 --srtp-secure=0 --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --use-srtp=3 --srtp-secure=0 --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
test_param = TestParam(
|
||||
"Callee=optional SRTP, caller=no SRTP",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-srtp=1 --srtp-secure=0 --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
test_param = TestParam(
|
||||
"Callee=optional SRTP, caller=optional SRTP",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-srtp=1 --srtp-secure=0 --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --use-srtp=1 --srtp-secure=0 --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
test_param = TestParam(
|
||||
"Callee=optional SRTP, caller=mandatory SRTP",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-srtp=1 --srtp-secure=0 --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --use-srtp=2 --srtp-secure=0 --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
test_param = TestParam(
|
||||
"Callee=optional SRTP, caller=optional (with duplicated offer) SRTP",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-srtp=1 --srtp-secure=0 --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --use-srtp=3 --srtp-secure=0 --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# Simple call
|
||||
test_param = TestParam(
|
||||
"Callee=mandatory SRTP, caller=optional SRTP",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-srtp=2 --srtp-secure=0 --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --use-srtp=1 --srtp-secure=0 --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
test_param = TestParam(
|
||||
"Callee=mandatory SRTP, caller=mandatory SRTP",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-srtp=2 --srtp-secure=0 --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --use-srtp=2 --srtp-secure=0 --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
test_param = TestParam(
|
||||
"Callee=mandatory SRTP, caller=optional (with duplicated offer) SRTP",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-srtp=2 --srtp-secure=0 --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --use-srtp=3 --srtp-secure=0 --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
test_param = TestParam(
|
||||
"Callee=optional (with duplicated offer) SRTP, caller=no SRTP",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-srtp=3 --srtp-secure=0 --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --use-srtp=0 --srtp-secure=0 --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
test_param = TestParam(
|
||||
"Callee=optional (with duplicated offer) SRTP, caller=optional SRTP",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-srtp=3 --srtp-secure=0 --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --use-srtp=1 --srtp-secure=0 --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
test_param = TestParam(
|
||||
"Callee=optional (with duplicated offer) SRTP, caller=mandatory SRTP",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-srtp=3 --srtp-secure=0 --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --use-srtp=2 --srtp-secure=0 --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
test_param = TestParam(
|
||||
"Callee=optional (with duplicated offer) SRTP, caller=optional (with duplicated offer) SRTP",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-srtp=3 --srtp-secure=0 --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --use-srtp=3 --srtp-secure=0 --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
test_param = TestParam(
|
||||
"Callee=mandatory SRTP, caller=mandatory SRTP with DTLS keying",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-srtp=2 --srtp-secure=0 --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --use-srtp=2 --srtp-secure=0 --max-calls=1 --srtp-keying=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# TCP call
|
||||
test_param = TestParam(
|
||||
"TCP transport",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --no-udp --max-calls=1", uri_param=";transport=tcp"),
|
||||
InstanceParam("caller", "--null-audio --no-udp --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# ICE mismatch
|
||||
test_param = TestParam(
|
||||
"Callee=no ICE, caller=use ICE",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --use-ice --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# ICE mismatch
|
||||
test_param = TestParam(
|
||||
"Callee=use ICE, caller=no ICE",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-ice --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# ICE mismatch
|
||||
test_param = TestParam(
|
||||
"Callee=use ICE, caller=use ICE",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-ice --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --use-ice --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -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),
|
||||
]
|
||||
)
|
||||
|
||||
@@ -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),
|
||||
]
|
||||
)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# Different number of ICE components
|
||||
test_param = TestParam(
|
||||
"Callee=use ICE, caller=use ICE",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-ice --max-calls=1 --ice-no-rtcp"),
|
||||
InstanceParam("caller", "--null-audio --use-ice --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# Different number of ICE components
|
||||
test_param = TestParam(
|
||||
"Callee=use ICE, caller=use ICE",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-ice --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --use-ice --max-calls=1 --ice-no-rtcp")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# ICE mismatch
|
||||
test_param = TestParam(
|
||||
"Callee=use ICE & SRTP, caller=use ICE & DTLS-SRTP",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --use-ice --max-calls=1 --use-srtp=2 --srtp-secure=0"),
|
||||
InstanceParam("caller", "--null-audio --use-ice --max-calls=1 --use-srtp=2 --srtp-secure=0 --srtp-keying=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# No ICE vs trickle ICE full, should be okay (as ICE will be disabled)
|
||||
test_param = TestParam(
|
||||
"Callee=Trickle ICE (full), caller=no ICE",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --max-calls=1 --use-ice --ice-trickle=2 --stun-srv stun.pjsip.org"),
|
||||
InstanceParam("caller", "--null-audio --max-calls=1")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# Regular ICE vs trickle ICE full, should be okay (as trickle will be disabled)
|
||||
test_param = TestParam(
|
||||
"Callee=Trickle ICE (full), caller=Regular ICE",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --max-calls=1 --use-ice --ice-trickle=2 --stun-srv stun.pjsip.org"),
|
||||
InstanceParam("caller", "--null-audio --max-calls=1 --use-ice --ice-trickle=0 --stun-srv stun.pjsip.org")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# Trickle ICE full vs full
|
||||
test_param = TestParam(
|
||||
"Callee=Trickle ICE (full), caller=Trickle ICE (full)",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --max-calls=1 --use-ice --ice-trickle=2 --stun-srv stun.pjsip.org"),
|
||||
InstanceParam("caller", "--null-audio --max-calls=1 --use-ice --ice-trickle=2 --stun-srv stun.pjsip.org")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# Trickle ICE full vs no ICE, should be okay (as there are host candidates)
|
||||
test_param = TestParam(
|
||||
"Callee=no ICE, caller=Trickle ICE (full)",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --max-calls=1"),
|
||||
InstanceParam("caller", "--null-audio --max-calls=1 --use-ice --ice-trickle=2 --stun-srv stun.pjsip.org")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# Trickle ICE full vs regular, should be okay (as there are host candidates)
|
||||
test_param = TestParam(
|
||||
"Callee=Regular ICE, caller=Trickle ICE (full)",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --max-calls=1 --use-ice --ice-trickle=0 --stun-srv stun.pjsip.org"),
|
||||
InstanceParam("caller", "--null-audio --max-calls=1 --use-ice --ice-trickle=2 --stun-srv stun.pjsip.org")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# Trickle ICE half vs half
|
||||
test_param = TestParam(
|
||||
"Callee=Trickle ICE (half), caller=Trickle ICE (half)",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --max-calls=1 --use-ice --ice-trickle=1 --stun-srv stun.pjsip.org"),
|
||||
InstanceParam("caller", "--null-audio --max-calls=1 --use-ice --ice-trickle=1 --stun-srv stun.pjsip.org")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# Trickle ICE half vs regular, should be okay (just like regular vs regular)
|
||||
test_param = TestParam(
|
||||
"Callee=Regular ICE, caller=Trickle ICE (half)",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --max-calls=1 --use-ice --ice-trickle=0 --stun-srv stun.pjsip.org"),
|
||||
InstanceParam("caller", "--null-audio --max-calls=1 --use-ice --ice-trickle=1 --stun-srv stun.pjsip.org")
|
||||
]
|
||||
)
|
||||
@@ -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")
|
||||
]
|
||||
)
|
||||
@@ -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")
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
# $Id$
|
||||
#
|
||||
from inc_cfg import *
|
||||
|
||||
# Simple call
|
||||
test_param = TestParam(
|
||||
"tel: URI in From",
|
||||
[
|
||||
InstanceParam("callee", "--null-audio --max-calls=1 --id tel:+111"),
|
||||
InstanceParam("caller", "--null-audio --max-calls=1")
|
||||
]
|
||||
)
|
||||
Reference in new issue
Block a user