class JanusConfig(ConfigSection):
    __cfgfile__ = 'webrtcgateway.ini'
    __section__ = 'Janus'

    api_url = 'ws://127.0.0.1:8188'
    api_secret = '0745f2f74f34451c89343afcdcae5809'
    trace_janus = False
    max_bitrate = ConfigSetting(type=VideoBitrate,
                                value=VideoBitrate(2016000))  # ~2 MBits/s
    video_codec = ConfigSetting(type=VideoCodec, value=VideoCodec('vp9'))
Exemple #2
0
class RTPConfig(ConfigSection):
    __cfgfile__ = 'config.ini'
    __section__ = 'RTP'

    audio_codecs = ConfigSetting(
        type=AudioCodecs, value=['opus', 'G722', 'speex', 'PCMA', 'PCMU'])
    port_range = ConfigSetting(type=PortRange, value=PortRange('50000:50500'))
    srtp_encryption = ConfigSetting(type=SRTPEncryption, value='opportunistic')
    timeout = ConfigSetting(type=NonNegativeInteger, value=30)
    sample_rate = ConfigSetting(type=SampleRate, value=48000)
Exemple #3
0
class ThorNodeConfig(ConfigSection):
    __cfgfile__ = configuration_filename
    __section__ = 'ThorNetwork'

    enabled = False
    domain = "sipthor.net"
    multiply = 1000
    certificate = ConfigSetting(type=Certificate, value=None)
    private_key = ConfigSetting(type=PrivateKey, value=None)
    ca = ConfigSetting(type=Certificate, value=None)
Exemple #4
0
class AutoNetworkConfig(ConfigSection):
    __cfgfile__ = 'config.ini'
    __section__ = 'Network'

    name = 'undefined'
    ip = ConfigSetting(type=datatypes.IPAddress, value=host.default_ip)
    port = 8000
    priority = ConfigSetting(type=Priority, value=Priority('Normal'))
    domains = ConfigSetting(type=datatypes.StringList, value=[])
    allow = ConfigSetting(type=datatypes.NetworkRangeList, value=[])
    use_tls = False
Exemple #5
0
class RoomConfig(ConfigSection):
    __cfgfile__ = 'conference.ini'

    access_policy = ConfigSetting(type=AccessPolicyValue, value=AccessPolicyValue('allow, deny'))
    allow = ConfigSetting(type=PolicySettingValue, value=PolicySettingValue('all'))
    deny = ConfigSetting(type=PolicySettingValue, value=PolicySettingValue('none'))

    pstn_access_numbers = ConfigSetting(type=StringList, value=ConferenceConfig.pstn_access_numbers)
    advertise_xmpp_support = ConferenceConfig.advertise_xmpp_support
    webrtc_gateway_url = ConferenceConfig.webrtc_gateway_url

    zrtp_auto_verify = ConferenceConfig.zrtp_auto_verify
Exemple #6
0
class XMPPGatewayConfig(ConfigSection):
    __cfgfile__ = 'xmppgateway.ini'
    __section__ = 'general'

    local_ip = ConfigSetting(type=IPAddress, value=IPAddress(host.default_ip))
    local_port = ConfigSetting(type=Port, value=5269)
    trace_xmpp = False
    log_presence = False
    domains = ConfigSetting(type=StringList, value=[])
    muc_prefix = 'conference'
    sip_session_timeout = ConfigSetting(type=NonNegativeInteger, value=86400)
    use_msrp_for_chat = True
Exemple #7
0
class RoomConfig(ConfigSection):
    __cfgfile__ = 'webrtcgateway.ini'

    record = False
    access_policy = ConfigSetting(type=AccessPolicyValue,
                                  value=AccessPolicyValue('allow, deny'))
    allow = ConfigSetting(type=PolicySettingValue,
                          value=PolicySettingValue('all'))
    deny = ConfigSetting(type=PolicySettingValue,
                         value=PolicySettingValue('none'))
    max_bitrate = ConfigSetting(type=VideoBitrate,
                                value=JanusConfig.max_bitrate)
    video_codec = ConfigSetting(type=VideoCodec, value=JanusConfig.video_codec)
Exemple #8
0
class Config(ConfigSection):
    __cfgfile__ = configuration_file
    __section__ = 'SIPThor'

    cleartext_passwords = True
    uri = "mysql://*****:*****@db/sipthor"
    subscriber_table = "sip_accounts"
    username_col = "username"
    domain_col = "domain"
    profile_col = "profile"
    multiply = 1000
    certificate = ConfigSetting(type=Certificate, value=None)
    private_key = ConfigSetting(type=PrivateKey, value=None)
    ca = ConfigSetting(type=Certificate, value=None)
Exemple #9
0
class ExternalAuthConfig(ConfigSection):
    __cfgfile__ = 'auth.ini'
    __section__ = 'ExternalAuth'

    enable = False
    # this can't be per-server due to limitations in imaplib
    imap_ca_cert_file = ConfigSetting(type=str, value='/etc/ssl/certs/ca-certificates.crt')
class GeneralConfig(ConfigSection):
    __cfgfile__ = 'playback.ini'
    __section__ = 'Playback'

    files_dir = ConfigSetting(type=Path,
                              value=Path(Resources.get('sounds/playback')))
    enable_video = False
    answer_delay = 1
Exemple #11
0
class RelayConfig(ConfigSection):
    __cfgfile__ = configuration_filename
    __section__ = 'Relay'

    relay_ip = ConfigSetting(type=IPAddress, value=host.default_ip)
    advertised_ip = ConfigSetting(type=IPAddress, value=None)
    stream_timeout = 90
    on_hold_timeout = 7200
    traffic_sampling_period = 15
    userspace_transmit_every = 1
    dispatchers = ConfigSetting(type=DispatcherAddressList, value=[])
    port_range = PortRange("50000:60000")
    dns_check_interval = PositiveInteger(60)
    keepalive_interval = PositiveInteger(10)
    reconnect_delay = PositiveInteger(10)
    passport = ConfigSetting(type=X509NameValidator, value=None)
    routable_private_ranges = ConfigSetting(type=NetworkRangeList, value=[])
Exemple #12
0
class DispatcherConfig(ConfigSection):
    __cfgfile__ = configuration_filename
    __section__ = 'Dispatcher'

    socket_path = "dispatcher.sock"
    listen = ConfigSetting(type=DispatcherIPAddress,
                           value=DispatcherIPAddress("any"))
    listen_management = ConfigSetting(type=DispatcherManagementAddress,
                                      value=DispatcherManagementAddress("any"))
    relay_timeout = 5  # How much to wait for an answer from a relay
    relay_recover_interval = 60  # How much to wait for an unresponsive relay to recover, before disconnecting it
    cleanup_dead_relays_after = 43200  # 12 hours
    cleanup_expired_sessions_after = 86400  # 24 hours
    management_use_tls = True
    accounting = ConfigSetting(type=AccountingModuleList, value=[])
    passport = ConfigSetting(type=X509NameValidator, value=None)
    management_passport = ConfigSetting(type=X509NameValidator, value=None)
Exemple #13
0
class ConferenceConfig(ConfigSection):
    __cfgfile__ = 'conference.ini'
    __section__ = 'Conference'

    history_size = 20

    access_policy = ConfigSetting(type=AccessPolicyValue,
                                  value=AccessPolicyValue('allow, deny'))
    allow = ConfigSetting(type=PolicySettingValue,
                          value=PolicySettingValue('all'))
    deny = ConfigSetting(type=PolicySettingValue,
                         value=PolicySettingValue('none'))

    file_transfer_dir = ConfigSetting(
        type=Path,
        value=Path(
            os.path.join(ServerConfig.spool_dir.normalized, 'conference',
                         'files')))
    push_file_transfer = False

    screensharing_images_dir = ConfigSetting(
        type=Path,
        value=Path(
            os.path.join(ServerConfig.spool_dir.normalized, 'conference',
                         'screensharing')))

    advertise_xmpp_support = False
    pstn_access_numbers = ConfigSetting(type=StringList, value='')
    webrtc_gateway_url = ConfigSetting(type=URL, value='')

    zrtp_auto_verify = True
Exemple #14
0
class CallControlConfig(ConfigSection):
    __cfgfile__ = configuration_filename
    __section__ = 'CallControl'
    socket            = "%s/socket" % process.runtime_directory
    group             = 'opensips'
    limit             = ConfigSetting(type=TimeLimit, value=None)
    timeout           = 24*60*60 ## timeout calls that are stale for more than 24 hours.
    setupTime         = 90       ## timeout calls that take more than 1'30" to setup.
    checkInterval     = 60       ## check for staled calls and calls that did timeout at every minute.
    timeout_detection = TimeoutDetection('dialog') ## whether or not to use the radius database to find out terminated calls
Exemple #15
0
class CallControlConfig(ConfigSection):
    __cfgfile__ = configuration_file
    __section__ = 'CallControl'

    socket = process.runtime.file('socket')
    group = 'opensips'
    limit = ConfigSetting(type=TimeLimit, value=None)
    timeout = 24 * 60 * 60  # timeout calls that are stale for more than 24 hours.
    setupTime = 90  # timeout calls that take more than 1'30" to setup.
    checkInterval = 60  # check for staled calls and calls that did timeout at every minute.
Exemple #16
0
class Logging(ConfigSection):
    __cfgfile__ = xcap.__cfgfile__
    __section__ = 'Logging'

    # directory where access.log will be created
    # if directory is empty, everything (access and error) will be
    # printed to console
    directory = '/var/log/openxcap'

    # each log message is followed by the headers of the request
    log_request_headers = ConfigSetting(type=ResponseCodeList, value=[500])

    log_request_body = ConfigSetting(type=ResponseCodeList, value=[500])

    log_response_headers = ConfigSetting(type=ResponseCodeList, value=[500])

    log_response_body = ConfigSetting(type=ResponseCodeList, value=[500])

    log_stacktrace = ConfigSetting(type=ResponseCodeList, value=[500])
Exemple #17
0
class GeneralConfig(ConfigSection):
    __cfgfile__ = 'webrtcgateway.ini'
    __section__ = 'General'

    web_origins = ConfigSetting(type=StringList, value=['*'])
    sip_domains = ConfigSetting(type=StringList, value=['*'])
    outbound_sip_proxy = ConfigSetting(type=SIPProxyAddress, value=None)
    trace_client = False
    websocket_ping_interval = 120
    recording_dir = ConfigSetting(type=Path, value=Path(os.path.join(ServerConfig.spool_dir.normalized, 'videoconference', 'recordings')))
    filesharing_dir = ConfigSetting(type=Path, value=Path(os.path.join(ServerConfig.spool_dir.normalized, 'videoconference', 'files')))
    http_management_interface = ConfigSetting(type=ManagementInterfaceAddress, value=ManagementInterfaceAddress('127.0.0.1'))
    http_management_auth_secret = ConfigSetting(type=str, value=None)
    sylk_push_url = ConfigSetting(type=str, value=None)
Exemple #18
0
class SIPConfig(ConfigSection):
    __cfgfile__ = 'config.ini'
    __section__ = 'SIP'

    local_ip = ConfigSetting(type=IPAddress, value=IPAddress(host.default_ip))
    local_udp_port = ConfigSetting(type=Port, value=5060)
    local_tcp_port = ConfigSetting(type=Port, value=5060)
    local_tls_port = ConfigSetting(type=Port, value=5061)
    advertised_ip = ConfigSetting(type=IPAddress, value=None)
    outbound_proxy = ConfigSetting(type=SIPProxyAddress, value=None)
    trusted_peers = ConfigSetting(type=NetworkRangeList,
                                  value=NetworkRangeList('any'))
    enable_ice = False
Exemple #19
0
class ServerConfig(ConfigSection):
    __cfgfile__ = 'config.ini'
    __section__ = 'Server'

    ca_file = ConfigSetting(type=Path, value=Path(Resources.get('tls/ca.crt')))
    certificate = ConfigSetting(type=Path,
                                value=Path(Resources.get('tls/default.crt')))
    verify_server = False
    enable_bonjour = False
    default_application = 'conference'
    application_map = ConfigSetting(type=StringList, value=['echo:echo'])
    disabled_applications = ConfigSetting(type=StringList, value='')
    extra_applications_dir = ConfigSetting(type=Path, value=None)
    trace_dir = ConfigSetting(type=Path,
                              value=Path(VarResources.get('log/sylkserver')))
    trace_dns = False
    trace_sip = False
    trace_msrp = False
    trace_core = False
    trace_notifications = False
    log_level = ConfigSetting(type=LogLevel, value=LogLevel('info'))
    spool_dir = ConfigSetting(type=Path,
                              value=Path(VarResources.get('spool/sylkserver')))
Exemple #20
0
class XMPPGatewayConfig(ConfigSection):
    __cfgfile__ = 'xmppgateway.ini'
    __section__ = 'general'

    local_ip = ConfigSetting(type=IPAddress, value=IPAddress(host.default_ip))
    local_port = ConfigSetting(type=Port, value=5269)
    trace_xmpp = False
    log_presence = False
    log_messages = False
    log_iscomposing = False
    transport = ConfigSetting(type=str, value='tls')
    ca_file = ConfigSetting(type=Path,
                            value=Path('/etc/sylkserver/tls/ca.crt'))
    certificate = ConfigSetting(type=Path,
                                value=Path('/etc/sylkserver/tls/default.crt'))
    domains = ConfigSetting(type=StringList, value=[])
    muc_prefix = 'conference'
    sip_session_timeout = ConfigSetting(type=NonNegativeInteger, value=86400)
    use_msrp_for_chat = True
    use_cpim = True
Exemple #21
0
class Config(ConfigSection):
    __cfgfile__ = xcap.__cfgfile__
    __section__ = 'OpenSIPS'

    xmlrpc_url = ConfigSetting(type=str, value=None)
    enable_publish_xcapdiff = False
Exemple #22
0
class ServerConfig(ConfigSection):
    __cfgfile__ = xcap.__cfgfile__
    __section__ = 'Server'

    allow_external_references = False
    root = ConfigSetting(type=XCAPRootURI, value=None)
Exemple #23
0
class AuthenticationConfig(ConfigSection):
    __cfgfile__ = xcap.__cfgfile__
    __section__ = 'Authentication'

    default_realm = ConfigSetting(type=str, value=None)
Exemple #24
0
class ServerConfig(ConfigSection):
    __cfgfile__ = xcap.__cfgfile__
    __section__ = 'Server'

    root = ConfigSetting(type=XCAPRootURI, value=None)
Exemple #25
0
class RatingConfig(ConfigSection):
    __cfgfile__ = configuration_filename
    __section__ = 'CDRTool'
    address = ConfigSetting(type=RatingEngineAddresses, value=[])
    timeout = 500
Exemple #26
0
class CallControlConfig(ConfigSection):
    __cfgfile__ = configuration_file
    __section__ = 'CallControl'

    prepaid_limit = ConfigSetting(type=TimeLimit, value=None)
    limit = ConfigSetting(type=TimeLimit, value=None)
Exemple #27
0
class ServerConfig(ConfigSection):
    __cfgfile__ = xcap.__cfgfile__
    __section__ = 'Server'

    address = ConfigSetting(type=IPAddress, value='0.0.0.0')
    root = ConfigSetting(type=XCAPRootURI, value=None)
Exemple #28
0
class TLSConfig(ConfigSection):
    __cfgfile__ = xcap.__cfgfile__
    __section__ = 'TLS'

    certificate = ConfigSetting(type=Certificate, value=None)
    private_key = ConfigSetting(type=PrivateKey, value=None)
Exemple #29
0
class Account(ConfigSection):
    sip_address = ''
    password = ConfigSetting(type=str, value=None)
    xcap_root = ''
class AuthenticationConfig(ConfigSection):
    __cfgfile__ = xcap.__cfgfile__
    __section__ = 'Authentication'

    default_realm = ConfigSetting(type=str, value=None)
    trusted_peers = ConfigSetting(type=NetworkRangeList, value=NetworkRangeList('none'))