summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/confbot/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip-apps/src/confbot/config.py')
-rw-r--r--pjsip-apps/src/confbot/config.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/pjsip-apps/src/confbot/config.py b/pjsip-apps/src/confbot/config.py
index b6d284ea..5eadcd79 100644
--- a/pjsip-apps/src/confbot/config.py
+++ b/pjsip-apps/src/confbot/config.py
@@ -4,14 +4,19 @@
#
import pjsua as pj
+# Set of admins. If empty then everyone is admin!
+admins = set([])
+
# acc_cfg holds the account config (set it to None to disable account)
+acc_cfg = None
acc_cfg = pj.AccountConfig()
-acc_cfg.id = "sip:102@pjsip.org"
-acc_cfg.reg_uri = "sip:pjsip.org"
-acc_cfg.proxy = [ "sip:pjsip.org;lr;transport=tcp" ]
-acc_cfg.auth_cred = [ pj.AuthCred("*", "102", "pw102") ]
-acc_cfg.publish_enabled = True
-acc_cfg.require_timer = True
+if acc_cfg:
+ acc_cfg.id = "sip:bot@pjsip.org"
+ acc_cfg.reg_uri = "sip:pjsip.org"
+ acc_cfg.proxy = [ "sip:pjsip.org;lr;transport=tcp" ]
+ acc_cfg.auth_cred = [ pj.AuthCred("*", "bot", "secretpass") ]
+ acc_cfg.publish_enabled = True
+ #acc_cfg.require_timer = True
# Transport configs (set them to None to disable the transport)
udp_cfg = pj.TransportConfig(5080)