Project

General

Profile

Configuration » History » Version 8

Adrian Georgescu, 07/31/2012 09:58 PM

1 1 Adrian Georgescu
h1. Configuration
2
3 8 Adrian Georgescu
The server default configuration should just work. If you need to tweak some settings below is a list of of all configurable parameters:
4
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 1 Adrian Georgescu
[Server]
12
13
; The following settings are the default used by the software, uncomment
14
; them only if you want to make changes
15
16
; default_application = conference
17
18
; Map user part of the Request URI to a specific application
19
; application_map = 123:conference,test:irc-conference
20
21
; trace_dir = /var/log/sylkserver
22
; trace_core = False
23
; trace_sip = False
24
; trace_msrp = False
25
; trace_notifications = False
26
27
; TLS can be used for encryption of SIP signaling and MSRP media. TLS is
28
; disabled by default.  To enable TLS, you must have a valid X.509
29
; certificate and configure it below, then set the local_tls_port in the SIP
30
; section and use_tls in MSRP section
31
32
; The X.509 Certificate Authorities file
33
; ca_file = /etc/sylkserver/tls/ca.crt
34
35
; The file containing X.509 certificate and private key in unencrypted format
36
; certificate = /etc/sylkserver/tls/default.crt
37
38
; verify_server = False
39
40
41
[SIP]
42
43
; SIP transport settings
44
; IP address used for SIP signaling; empty string or any means listen on interface used
45
; by the default route
46
; local_ip =
47
48
; Ports used for SIP transports, if not set to any value the transport will be disabled
49
; local_udp_port = 5060
50
; local_tcp_port = 5060
51
; local_tls_port = 5061
52
53
; If set all outbound SIP requests will be sent through this SIP proxy
54
; outbound_proxy =
55
56
; A comma-separated list of hosts or networks to trust.
57
; The elements can be an IP address in CIDR format, a
58
; hostname or an IP address (in the latter 2 a mask of 32
59
; is assumed), or the special keywords 'any' and 'none'
60
; (being equivalent to 0.0.0.0/0 and 0.0.0.0/32
61
; respectively). It defaults to 'any'.
62
; trusted_peers =
63
64
65
[MSRP]
66
67
; MSRP transport settings
68
69
; A valid X.509 certificate is required for MSRP to work over TLS.
70
; TLS is enabled by default, a default TLS certificate is provided with SylkServer.
71
; use_tls = True
72
73
74
[RTP]
75
76
; RTP transport settings
77
78
; Allowed codec list, valid values: G722, speex, PCMU, PCMA, iLBC, GSM
79
; audio_codecs = G722,speex,PCMU,PCMA
80
81
; Port range used for RTP
82
; port_range = 50000:50500
83
84
; SRTP valid values: disabled, mandatory, optional
85
; srtp_encryption = optional
86
87
; RTP stream timeout, session will be disconnected after this value
88
; timeout = 30
89
90
</pre>
91
92 6 Adrian Georgescu
h2. Applications settings
93 1 Adrian Georgescu
94 6 Adrian Georgescu
h3. Conference
95
96 3 Adrian Georgescu
To change the default settings copy conference.ini.sample  to /etc/sylkserver/conference.ini
97
98
99 1 Adrian Georgescu
<pre>
100
; SylkServer Conference application configuration file
101
102
[Conference]
103
104
; The following settings are the default used by the software, uncomment them
105
; only if you want to make changes
106
107
; db_uri = sqlite:///var/lib/sylkserver/conference.sqlite
108
109
; Database table name for storing messages history
110
; history_table = message_history
111
112
; Replay last chat messages after joining a room
113
; replay_history = 20
114
115
; Directory for storing files transferred to rooms (a subdirectory for each room will be created)
116
; file_transfer_dir = /var/spool/sylkserver
117
118
; File transfer push support. If enabled files will be pushed to all active
119
; participants after receiving the file
120
; push_file_transfer = False
121
122
; Directory where images use by the Screen Sharing functionality will be stored
123
; screen_sharing_dir = /var/spool/sylkserver/screensharing
124
125
; IP address used for serving Screen Sharing HTTP requests, empty string means listen on interface used
126
; by the default route
127
; screen_sharing_ip =
128
129
; Port where Screen Sharing HTTP server will listen on, set to 0 for random
130
; screen_sharing_port = 0
131
132
; Use HTTPS instead of HTTP
133
; screen_sharing_use_https = True
134
135
; Server certificate for HTTPS connections
136
; screen_sharing_certificate = /etc/sylkserver/tls/default.crt
137
138
; Advertise the conference server and each room in Bonjour
139
; use_bonjour = False
140
141
; Access Lists Default Policy
142
; Apache-style access lists for the caller using SIP domains or SIP URIs
143
; https://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order
144
;
145
; access_policy = allow, deny
146
; allow = all
147
; deny = none
148
149
; Access Lists can be applied per room overriding the Default Policy
150
;
151
; [test@domain.com]
152
; access_policy = allow, deny
153
; allow = example.com, test@domain.com
154
; deny = all
155
156
</pre>
157
158 6 Adrian Georgescu
h3. XMPP gateway
159 3 Adrian Georgescu
160
To change the default settings copy xmppgateway.ini.sample  to /etc/sylkserver/xmppgateway.ini
161
162 1 Adrian Georgescu
163
<pre>
164
; SylkServer XMPP gateway application configuration file
165
166
[general]
167
168
; Comma-separated list of domains for which this server is responsible
169
; Add the xmmp-server records into the DNS server responsable for these domains
170
; At least one domain is required!
171
; domains =
172
173
; The following settings are the default used by the software, uncomment
174
; them only if you want to make changes
175
176
; Prefix that will be appended to all domains in the above setting, which will
177
; be used as a Multi User Chat (MUC) component
178
; muc_prefix = conference
179
180
; IP address used for listening to XMPP connections; empty string or any means listen on interface used
181
; by the default route
182
; local_ip =
183
184
; local_port = 5269
185
186
; If set to True (default) MSRP will be used to translate XMPP Instant Messaging, else SIP MESSAGE will be used
187
; Note: XMPP 'normal' messages (not chat messages) are always translated to SIP MESSAGE requests
188
; use_msrp_for_chat = True
189
190
; Timeout to terminate a SIP session if no chat traffic was received
191
; sip_session_timeout = 600
192
193
; Enable verbose logging of XMPP stantzas
194
; trace_xmpp = False
195
</pre>
196
197
 
198 6 Adrian Georgescu
h3. IRC
199 5 Adrian Georgescu
200
To change the default settings copy ircconference.ini.sample  to /etc/sylkserver/ircconference.ini
201
202
<pre>
203
[123]
204
channel = test
205
server = irc.freenode.net:6667
206
</pre>