1
# $Id: config.py 2912 2009-08-24 11:56:13Z bennylp $
7
# Set of admins. If empty then everyone is admin!
10
# acc_cfg holds the account config (set it to None to disable account)
12
acc_cfg = pj.AccountConfig()
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
21
# Transport configs (set them to None to disable the transport)
22
udp_cfg = pj.TransportConfig(5080)
23
tcp_cfg = pj.TransportConfig(0)
26
# Logging Config (you can also set it to None to use default values)
27
def log_cb(level, str, len):
30
log_cfg = pj.LogConfig()
31
#log_cfg.callback = log_cb
33
# UA Config (you can also set it to None to use default values)
34
ua_cfg = pj.UAConfig()
35
ua_cfg.user_agent = "PJSIP ConfBot"
36
ua_cfg.stun_host = "stun.pjsip.org"
38
# Media config (you can also set it to None to use default values)
39
media_cfg = pj.MediaConfig()
40
media_cfg.enable_ice = True
41
media_cfg.max_calls = 20