Ignore:
Timestamp:
Aug 24, 2009 11:56:13 AM (15 years ago)
Author:
bennylp
Message:

More #956: added admin commands and html mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/confbot/config.py

    r2911 r2912  
    55import pjsua as pj 
    66 
     7# Set of admins. If empty then everyone is admin! 
     8admins = set([]) 
     9 
    710# acc_cfg holds the account config (set it to None to disable account) 
     11acc_cfg = None 
    812acc_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 
     13if 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 
    1520 
    1621# Transport configs (set them to None to disable the transport) 
Note: See TracChangeset for help on using the changeset viewer.