diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-08-23 14:26:37 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-08-23 14:26:37 +0000 |
commit | 4077e16cb659407bcd5c162b10a2383f0b53138b (patch) | |
tree | e8b2b9f083fccba33568cef822a95e1c1c984582 /pjsip-apps/src/confbot/config.py | |
parent | 31628f381ddbecf184d10906efcc06100a8d9e63 (diff) |
Ticket #956: confbot application, initial version
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2911 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/confbot/config.py')
-rw-r--r-- | pjsip-apps/src/confbot/config.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pjsip-apps/src/confbot/config.py b/pjsip-apps/src/confbot/config.py new file mode 100644 index 00000000..b6d284ea --- /dev/null +++ b/pjsip-apps/src/confbot/config.py @@ -0,0 +1,36 @@ +# $Id$ +# +# Confbot settings +# +import pjsua as pj + +# acc_cfg holds the account config (set it to None to disable account) +acc_cfg = pj.AccountConfig() +acc_cfg.id = "sip:102@pjsip.org" +acc_cfg.reg_uri = "sip:pjsip.org" +acc_cfg.proxy = [ "sip:pjsip.org;lr;transport=tcp" ] +acc_cfg.auth_cred = [ pj.AuthCred("*", "102", "pw102") ] +acc_cfg.publish_enabled = True +acc_cfg.require_timer = True + +# Transport configs (set them to None to disable the transport) +udp_cfg = pj.TransportConfig(5080) +tcp_cfg = pj.TransportConfig(0) +#tcp_cfg = None + +# Logging Config (you can also set it to None to use default values) +def log_cb(level, str, len): + print str, + +log_cfg = pj.LogConfig() +#log_cfg.callback = log_cb + +# UA Config (you can also set it to None to use default values) +ua_cfg = pj.UAConfig() +ua_cfg.user_agent = "PJSIP ConfBot" +ua_cfg.stun_host = "stun.pjsip.org" + +# Media config (you can also set it to None to use default values) +media_cfg = pj.MediaConfig() +media_cfg.enable_ice = True +media_cfg.max_calls = 20 |