blob: 5eadcd79910f651e1f7c0de8a113e3193c3760eb [file] [log] [blame]
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001# $Id$
2#
3# Confbot settings
4#
5import pjsua as pj
6
7# Set of admins. If empty then everyone is admin!
8admins = set([])
9
10# acc_cfg holds the account config (set it to None to disable account)
11acc_cfg = None
12acc_cfg = pj.AccountConfig()
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
20
21# Transport configs (set them to None to disable the transport)
22udp_cfg = pj.TransportConfig(5080)
23tcp_cfg = pj.TransportConfig(0)
24#tcp_cfg = None
25
26# Logging Config (you can also set it to None to use default values)
27def log_cb(level, str, len):
28 print str,
29
30log_cfg = pj.LogConfig()
31#log_cfg.callback = log_cb
32
33# UA Config (you can also set it to None to use default values)
34ua_cfg = pj.UAConfig()
35ua_cfg.user_agent = "PJSIP ConfBot"
36ua_cfg.stun_host = "stun.pjsip.org"
37
38# Media config (you can also set it to None to use default values)
39media_cfg = pj.MediaConfig()
40media_cfg.enable_ice = True
41media_cfg.max_calls = 20