~ubuntu-branches/ubuntu/wily/sflphone/wily-proposed

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject-2.2.1/pjsip-apps/src/confbot/config.py

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-07 14:51:16 UTC
  • mfrom: (4.3.5 sid)
  • Revision ID: package-import@ubuntu.com-20150107145116-yxnafinf4lrdvrmx
Tags: 1.4.1-0.1ubuntu1
* Merge with Debian, remaining changes:
 - Drop soprano, nepomuk build-dep
* Drop ubuntu patches, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id: config.py 2912 2009-08-24 11:56:13Z bennylp $
 
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