Changeset 2912 for pjproject/trunk/pjsip-apps/src/confbot/config.py
- Timestamp:
- Aug 24, 2009 11:56:13 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/confbot/config.py
r2911 r2912 5 5 import pjsua as pj 6 6 7 # Set of admins. If empty then everyone is admin! 8 admins = set([]) 9 7 10 # acc_cfg holds the account config (set it to None to disable account) 11 acc_cfg = None 8 12 acc_cfg = pj.AccountConfig() 9 acc_cfg.id = "sip:102@pjsip.org" 10 acc_cfg.reg_uri = "sip:pjsip.org" 11 acc_cfg.proxy = [ "sip:pjsip.org;lr;transport=tcp" ] 12 acc_cfg.auth_cred = [ pj.AuthCred("*", "102", "pw102") ] 13 acc_cfg.publish_enabled = True 14 acc_cfg.require_timer = True 13 if acc_cfg: 14 acc_cfg.id = "sip:bot@pjsip.org" 15 acc_cfg.reg_uri = "sip:pjsip.org" 16 acc_cfg.proxy = [ "sip:pjsip.org;lr;transport=tcp" ] 17 acc_cfg.auth_cred = [ pj.AuthCred("*", "bot", "secretpass") ] 18 acc_cfg.publish_enabled = True 19 #acc_cfg.require_timer = True 15 20 16 21 # Transport configs (set them to None to disable the transport)
Note: See TracChangeset
for help on using the changeset viewer.