File: janus.eventhandler.sampleevh.jcfg.sample

package info (click to toggle)
janus 1.1.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,804 kB
  • sloc: ansic: 87,789; javascript: 16,059; makefile: 696; sh: 282; python: 257; lisp: 9
file content (44 lines) | stat: -rw-r--r-- 2,306 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# This configures the sample event handler. Since this plugin simply
# forwards each event it receives via HTTP POST, you simply need to
# configure (i) which events to subscribe to, and (ii) the address of
# the web server which will receive the requests.

general: {
	enabled = false		# By default the module is not enabled
	events = "all"		# Comma separated list of the events mask you're interested
						# in. Valid values are none, sessions, handles, jsep, webrtc,
						# media, plugins, transports, core, external and all. By
						# default we subscribe to everything (all)
	grouping = true		# Whether events should be sent individually (one per
						# HTTP POST, JSON object), or if it's ok to group them
						# (one or more per HTTP POST, JSON array with objects)
						# The default is 'yes' to limit the number of connections.
	json = "indented"	# Whether the JSON messages should be indented (default),
						# plain (no indentation) or compact (no indentation and no spaces)

	#compress = true	# Optionally, the JSON messages can be compressed using zlib
	#compression = 9	# In case, you can specify the compression factor, where 1 is
						# the fastest (low compression), and 9 gives the best compression

						# Address the plugin will send all events to as HTTP POST
						# requests with an application/json payload. In case
						# authentication is required to contact the backend, set
						# the credentials as well (basic authentication only).
	backend = "http://your.webserver.here/and/a/path"
	#backend_user = "myuser"
	#backend_pwd = "mypwd"

						# You can also configure how retransmissions should
						# happen, after a failed attempt to deliver an event.
						# Specifically, you can specify how many times a
						# retransmission should be attempted (default=5) and
						# which step is used, in milliseconds, for the exponential
						# backoff before retrying (e.g, if step=100ms, then the
						# the first retry will happen after 100ms, the second
						# after 200ms, then 400ms, and so on). If the event cannot
						# be retransmitted after the maximum number of attemps
						# is reached, then it's lost. Beware that retransmissions
						# will also delay pending events and increase the queue.
	#max_retransmissions = 5
	#retransmissions_backoff = 100
}