Page MenuHomePhabricator

No OneTemporary

diff --git a/sipsimple/configuration/settings.py b/sipsimple/configuration/settings.py
index ea89f692..5bb672a0 100644
--- a/sipsimple/configuration/settings.py
+++ b/sipsimple/configuration/settings.py
@@ -1,109 +1,110 @@
# Copyright (C) 2008-2009 AG Projects. See LICENSE for details.
#
"""
SIP SIMPLE settings.
Definition of general (non-account related) settings.
"""
import os
from sipsimple import __version__
from sipsimple.configuration import Setting, SettingsGroup, SettingsObject
from sipsimple.configuration.datatypes import AbsolutePath, ContentTypeList, DataPath, ImageDepth, LocalIPAddress, MSRPTransport, NonNegativeInteger, Port, PortRange, Resolution, SampleRate, SoundFile, TLSProtocol, Transports
__all__ = ['SIPSimpleSettings']
class AudioSettings(SettingsGroup):
input_device = Setting(type=str, default=None, nillable=True)
output_device = Setting(type=str, default=None, nillable=True)
echo_delay = Setting(type=NonNegativeInteger, default=200)
recordings_directory = Setting(type=DataPath, default=DataPath('history'))
sample_rate = Setting(type=SampleRate, default=32)
+ silent = Setting(type=bool, default=False)
playback_dtmf = Setting(type=bool, default=True)
class ChatSettings(SettingsGroup):
message_received_sound = Setting(type=SoundFile, default=None, nillable=True)
message_sent_sound = Setting(type=SoundFile, default=None, nillable=True)
history_directory = Setting(type=DataPath, default=DataPath('history'))
accept_types = Setting(type=ContentTypeList, default=('message/cpim', 'text/*'))
accept_wrapped_types = Setting(type=ContentTypeList, default=('*',))
class DesktopSharingSettings(SettingsGroup):
color_depth = Setting(type=ImageDepth, default=8)
resolution = Setting(type=Resolution, default=Resolution(width=1024, height=768))
client_command = Setting(type=AbsolutePath, default=None, nillable=True)
server_command = Setting(type=AbsolutePath, default=None, nillable=True)
class FileTransferSettings(SettingsGroup):
directory = Setting(type=DataPath, default=DataPath('file_transfers'))
file_received_sound = Setting(type=SoundFile, default=None, nillable=True)
file_sent_sound = Setting(type=SoundFile, default=None, nillable=True)
class LoggingSettings(SettingsGroup):
directory = Setting(type=DataPath, default=DataPath('logs'))
trace_sip = Setting(type=bool, default=False)
trace_pjsip = Setting(type=bool, default=False)
trace_msrp = Setting(type=bool, default=False)
trace_xcap = Setting(type=bool, default=False)
pjsip_level = Setting(type=NonNegativeInteger, default=5)
class MSRPSettings(SettingsGroup):
transport = Setting(type=MSRPTransport, default='tls')
local_port = Setting(type=Port, default=0)
class RingtoneSettings(SettingsGroup):
inbound = Setting(type=SoundFile, default=None, nillable=True)
outbound = Setting(type=SoundFile, default=None, nillable=True)
class RTPSettings(SettingsGroup):
port_range = Setting(type=PortRange, default=PortRange(50000, 50400))
class SIPSettings(SettingsGroup):
local_udp_port = Setting(type=Port, default=0)
local_tcp_port = Setting(type=Port, default=0)
local_tls_port = Setting(type=Port, default=0)
transports = Setting(type=Transports, default=('tls', 'tcp', 'udp'))
class TLSSettings(SettingsGroup):
ca_list_file = Setting(type=DataPath, default=None, nillable=True)
certificate_file = Setting(type=DataPath, default=None, nillable=True)
private_key_file = Setting(type=DataPath, default=None, nillable=True)
protocol = Setting(type=TLSProtocol, default='TLSv1')
verify_server = Setting(type=bool, default=False)
timeout = Setting(type=NonNegativeInteger, default=1000)
class SIPSimpleSettings(SettingsObject):
__section__ = 'Global'
__id__ = 'SIPSimple'
data_directory = Setting(type=AbsolutePath, default=os.path.expanduser('~/.sipclient'))
default_account = Setting(type=str, default='bonjour@local', nillable=True)
local_ip = Setting(type=LocalIPAddress, default=LocalIPAddress())
user_agent = Setting(type=str, default='sipsimple %s' % __version__)
audio = AudioSettings
chat = ChatSettings
desktop_sharing = DesktopSharingSettings
file_transfer = FileTransferSettings
logging = LoggingSettings
msrp = MSRPSettings
ringtone = RingtoneSettings
rtp = RTPSettings
sip = SIPSettings
tls = TLSSettings

File Metadata

Mime Type
text/x-diff
Expires
Sat, Dec 28, 3:27 PM (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3454312
Default Alt Text
(4 KB)

Event Timeline