Project

General

Profile

Configuration » History » Version 10

Adrian Georgescu, 01/28/2013 04:51 PM

1 1 Adrian Georgescu
h1. Configuration
2
3 9 Adrian Georgescu
The server default configuration should just work. If you need to tweak some settings below is a list of all configurable parameters:
4 8 Adrian Georgescu
5 7 Adrian Georgescu
h2. General server settings
6 1 Adrian Georgescu
7 3 Adrian Georgescu
To change the default settings copy config.ini.sample  to /etc/sylkserver/config.ini
8 1 Adrian Georgescu
9
<pre>
10 2 Adrian Georgescu
; SylkServer configuration file
11 10 Adrian Georgescu
12 1 Adrian Georgescu
[Server]
13
14
; The following settings are the default used by the software, uncomment
15
; them only if you want to make changes
16
17
; default_application = conference
18
19 10 Adrian Georgescu
; Statically map a Request URI to a specific application. In the example
20
; below, 123 is matched 1st against the domain part, than the username part
21
; of the Request URI This static mapping can be overwritten by adding
22
; X-Sylk-App header set to the value of a valid SylkServer application name
23
; application_map = echo:echo,123:conference,test:ircconference,gmail.com:xmppgateway
24 1 Adrian Georgescu
25 10 Adrian Georgescu
; Disable the specified applications
26
; disabled_applications =
27
28 1 Adrian Georgescu
; trace_dir = /var/log/sylkserver
29
; trace_core = False
30
; trace_sip = False
31
; trace_msrp = False
32
; trace_notifications = False
33
34
; TLS can be used for encryption of SIP signaling and MSRP media. TLS is
35
; disabled by default.  To enable TLS, you must have a valid X.509
36
; certificate and configure it below, then set the local_tls_port in the SIP
37
; section and use_tls in MSRP section
38
39
; The X.509 Certificate Authorities file
40
; ca_file = /etc/sylkserver/tls/ca.crt
41
42
; The file containing X.509 certificate and private key in unencrypted format
43
; certificate = /etc/sylkserver/tls/default.crt
44
45
; verify_server = False
46
47 10 Adrian Georgescu
; Enable Bonjour capabilities for applications
48
; enable_bonjour = False
49 1 Adrian Georgescu
50
[SIP]
51
52
; SIP transport settings
53
; IP address used for SIP signaling; empty string or any means listen on interface used
54
; by the default route
55
; local_ip =
56
57
; Ports used for SIP transports, if not set to any value the transport will be disabled
58
; local_udp_port = 5060
59
; local_tcp_port = 5060
60
; local_tls_port = 5061
61
62 10 Adrian Georgescu
; If set, all outbound SIP requests will be sent through this SIP proxy
63
; The proxy address format is: proxy.example.com:5061;transport=tls
64
; Transport can be udp, tcp or tls, if skipped it is considered udp
65
; If only the hostname is set, RFC3263 lookups are performed to lookup 
66
; the outbound proxy server address
67 1 Adrian Georgescu
; outbound_proxy =
68
69
; A comma-separated list of hosts or networks to trust.
70
; The elements can be an IP address in CIDR format, a
71
; hostname or an IP address (in the latter 2 a mask of 32
72
; is assumed), or the special keywords 'any' and 'none'
73
; (being equivalent to 0.0.0.0/0 and 0.0.0.0/32
74
; respectively). It defaults to 'any'.
75
; trusted_peers =
76
77
78
[MSRP]
79
80
; MSRP transport settings
81
82
; A valid X.509 certificate is required for MSRP to work over TLS.
83
; TLS is enabled by default, a default TLS certificate is provided with SylkServer.
84
; use_tls = True
85
86
87
[RTP]
88
89
; RTP transport settings
90
91
; Allowed codec list, valid values: G722, speex, PCMU, PCMA, iLBC, GSM
92
; audio_codecs = G722,speex,PCMU,PCMA
93
94
; Port range used for RTP
95
; port_range = 50000:50500
96
97
; SRTP valid values: disabled, mandatory, optional
98
; srtp_encryption = optional
99
100
; RTP stream timeout, session will be disconnected after this value
101
; timeout = 30
102
103
104
</pre>
105
106 6 Adrian Georgescu
h3. XMPP gateway
107 3 Adrian Georgescu
108
To change the default settings copy xmppgateway.ini.sample  to /etc/sylkserver/xmppgateway.ini
109
110 1 Adrian Georgescu
111
<pre>
112
; SylkServer XMPP gateway application configuration file
113
114
[general]
115
116
; Comma-separated list of domains for which this server is responsible
117
; Add the xmmp-server records into the DNS server responsable for these domains
118
; At least one domain is required!
119
; domains =
120
121
; The following settings are the default used by the software, uncomment
122
; them only if you want to make changes
123
124
; Prefix that will be appended to all domains in the above setting, which will
125
; be used as a Multi User Chat (MUC) component
126
; muc_prefix = conference
127
128
; IP address used for listening to XMPP connections; empty string or any means listen on interface used
129
; by the default route
130
; local_ip =
131
132
; local_port = 5269
133
134
; If set to True (default) MSRP will be used to translate XMPP Instant Messaging, else SIP MESSAGE will be used
135
; Note: XMPP 'normal' messages (not chat messages) are always translated to SIP MESSAGE requests
136
; use_msrp_for_chat = True
137
138
; Timeout to terminate a SIP session if no chat traffic was received
139
; sip_session_timeout = 600
140
141
; Enable verbose logging of XMPP stantzas
142
; trace_xmpp = False
143
</pre>
144
145
 
146 6 Adrian Georgescu
h3. IRC
147 5 Adrian Georgescu
148
To change the default settings copy ircconference.ini.sample  to /etc/sylkserver/ircconference.ini
149
150
<pre>
151
[123]
152
channel = test
153
server = irc.freenode.net:6667
154
</pre>