summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/test-pjsua/inc_cfg.py
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip-apps/src/test-pjsua/inc_cfg.py')
-rw-r--r--pjsip-apps/src/test-pjsua/inc_cfg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pjsip-apps/src/test-pjsua/inc_cfg.py b/pjsip-apps/src/test-pjsua/inc_cfg.py
index 6f3219c9..5b7514a6 100644
--- a/pjsip-apps/src/test-pjsua/inc_cfg.py
+++ b/pjsip-apps/src/test-pjsua/inc_cfg.py
@@ -55,7 +55,7 @@ class InstanceParam:
self.arg = arg + " --local-port=" + str(self.sip_port)
self.have_reg = have_reg
self.have_publish = have_publish
- if not ("--publish" in self.arg):
+ if have_publish and have_reg and not ("--publish" in self.arg):
self.arg = self.arg + " --publish"
self.echo_enabled = echo_enabled
self.trace_enabled = trace_enabled