summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/confbot/config.py
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-08-24 11:56:13 +0000
committerBenny Prijono <bennylp@teluu.com>2009-08-24 11:56:13 +0000
commit04c1872db2effd3ba4f118328aae9d024c647fbc (patch)
tree29dd9c848b0508133c33da82ed844cfba89cc868 /pjsip-apps/src/confbot/config.py
parent4077e16cb659407bcd5c162b10a2383f0b53138b (diff)
More #956: added admin commands and html mode
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2912 74dad513-b988-da41-8d7b-12977e46ad98
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)