Debian Codegraph @

Xpjproject/pjsip-apps/src/confbot/config.py

raw symbols SCIP
1 #
2 # Confbot settings
3 #
4 import pjsua as pj
5
6 # Set of admins. If empty then everyone is admin!
7 admins = set([])
8
9 # acc_cfg holds the account config (set it to None to disable account)
10 acc_cfg = None
11 acc_cfg = pj.AccountConfig()
12 if acc_cfg:
13 acc_cfg.id = "sip:[email protected]"
14 acc_cfg.reg_uri = "sip:pjsip.org"
15 acc_cfg.proxy = [ "sip:pjsip.org;lr;transport=tcp" ]
16 acc_cfg.auth_cred = [ pj.AuthCred("*", "bot", "secretpass") ]
17 acc_cfg.publish_enabled = True
18 #acc_cfg.require_timer = True
19
20 # Transport configs (set them to None to disable the transport)
21 udp_cfg = pj.TransportConfig(5080)
22 tcp_cfg = pj.TransportConfig(0)
23 #tcp_cfg = None
24
25 # Logging Config (you can also set it to None to use default values)
26 def log_cb(level, str, len):
27 print str,
28
29 log_cfg = pj.LogConfig()
30 #log_cfg.callback = log_cb
31
32 # UA Config (you can also set it to None to use default values)
33 ua_cfg = pj.UAConfig()
34 ua_cfg.user_agent = "PJSIP ConfBot"
35 ua_cfg.stun_host = "stun.pjsip.org"
36
37 # Media config (you can also set it to None to use default values)
38 media_cfg = pj.MediaConfig()
39 media_cfg.enable_ice = True
40 media_cfg.max_calls = 20