summaryrefslogtreecommitdiff
path: root/tests/pjsua/scripts-pres/200_publish.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pjsua/scripts-pres/200_publish.py')
-rw-r--r--tests/pjsua/scripts-pres/200_publish.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/pjsua/scripts-pres/200_publish.py b/tests/pjsua/scripts-pres/200_publish.py
new file mode 100644
index 0000000..d06b190
--- /dev/null
+++ b/tests/pjsua/scripts-pres/200_publish.py
@@ -0,0 +1,35 @@
+# $Id: 200_publish.py 2028 2008-06-16 13:04:44Z bennylp $
+#
+from inc_cfg import *
+
+# Basic registration
+test_param = TestParam(
+ "Presence with PUBLISH",
+ [
+ InstanceParam( "ua1",
+ "--null-audio"+
+ " --id=\"<sip:test1@pjsip.org>\""+
+ " --registrar=sip:sip.pjsip.org" +
+ " --username=test1" +
+ " --password=test1" +
+ " --realm=*" +
+ " --proxy=\"sip:sip.pjsip.org;lr\"" +
+ " --publish",
+ uri="<sip:test1@pjsip.org>",
+ have_reg=True,
+ have_publish=True),
+ InstanceParam( "ua2",
+ "--null-audio"+
+ " --id=\"<sip:test2@pjsip.org>\""+
+ " --registrar=sip:sip.pjsip.org" +
+ " --username=test2" +
+ " --password=test2" +
+ " --realm=*" +
+ " --proxy=\"sip:sip.pjsip.org;lr\"" +
+ " --publish",
+ uri="<sip:test2@pjsip.org>",
+ have_reg=True,
+ have_publish=True),
+ ]
+ )
+