Tristan Matthews | 0a329cc | 2013-07-17 13:20:14 -0400 | [diff] [blame] | 1 | # $Id$ |
| 2 | # |
| 3 | # Confbot settings |
| 4 | # |
| 5 | import pjsua as pj |
| 6 | |
| 7 | # Set of admins. If empty then everyone is admin! |
| 8 | admins = set([]) |
| 9 | |
| 10 | # acc_cfg holds the account config (set it to None to disable account) |
| 11 | acc_cfg = None |
| 12 | acc_cfg = pj.AccountConfig() |
| 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 |
| 20 | |
| 21 | # Transport configs (set them to None to disable the transport) |
| 22 | udp_cfg = pj.TransportConfig(5080) |
| 23 | tcp_cfg = pj.TransportConfig(0) |
| 24 | #tcp_cfg = None |
| 25 | |
| 26 | # Logging Config (you can also set it to None to use default values) |
| 27 | def log_cb(level, str, len): |
| 28 | print str, |
| 29 | |
| 30 | log_cfg = pj.LogConfig() |
| 31 | #log_cfg.callback = log_cb |
| 32 | |
| 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" |
| 37 | |
| 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 |