Project

General

Profile

Configuration » History » Version 11

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 11 Adrian Georgescu
; Add the xmpp-server records into the DNS server responsable for these domains,
118
; e.g.: _xmpp-server._tcp.example.com. IN SRV	0 0 5269 sylkserver.example.com.
119 1 Adrian Georgescu
; At least one domain is required!
120
; domains =
121
122
; The following settings are the default used by the software, uncomment
123
; them only if you want to make changes
124
125
; Prefix that will be appended to all domains in the above setting, which will
126
; be used as a Multi User Chat (MUC) component
127 11 Adrian Georgescu
; Add the xmpp-server records into the DNS server for the conference domains,
128
; e.g.: _xmpp-server._tcp.conference.example.com. IN SRV 0 0 5269 sylkserver.example.com.
129 1 Adrian Georgescu
; muc_prefix = conference
130
131
; IP address used for listening to XMPP connections; empty string or any means listen on interface used
132
; by the default route
133
; local_ip =
134
135
; local_port = 5269
136
137
; If set to True (default) MSRP will be used to translate XMPP Instant Messaging, else SIP MESSAGE will be used
138
; Note: XMPP 'normal' messages (not chat messages) are always translated to SIP MESSAGE requests
139
; use_msrp_for_chat = True
140
141
; Timeout to terminate a SIP session if no chat traffic was received
142
; sip_session_timeout = 600
143
144
; Enable verbose logging of XMPP stantzas
145
; trace_xmpp = False
146
</pre>
147
148
 
149 6 Adrian Georgescu
h3. IRC
150 5 Adrian Georgescu
151
To change the default settings copy ircconference.ini.sample  to /etc/sylkserver/ircconference.ini
152
153
<pre>
154
[123]
155
channel = test
156
server = irc.freenode.net:6667
157
</pre>