summaryrefslogtreecommitdiff
path: root/README
blob: d605a8c2991862cd552822fdf973327051eb7df2 (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
GENERAL
=======

Telepathy-Ring is a Telepathy connection manager for GSM and similar mobile
telephony.

Telepathy-Ring is named after Douglas H. Ring, one of the inventors of
cellular mobile phone system.

Currently, Telephathy-Ring implements Connection Manager and Connection
functionality, StreamedMedia channels for voice calls and Text channels for
SMS messaging.


ENVIRONMENT VARIABLES AND DEBUGGING
===================================

The following environment variables are used:

- RING_PERSIST - if set, keep running even if no connection is active
- RING_REALTIME - if set, try to use realtime priority
- RING_MEMLOCK - if set, use mmlockall()
- RING_LOGFILE - redirect debugging output (stdout/stderr) to named file
- RING_DEBUG - if set, determine what kind of debugging output to print
  - all - everything
  - connection - connection-related
  - media - call and media-related
  - text - SMS-related
- MODEM_DEBUG - determine what kind of debugging output to print from modem libraries
  - all - print everything
  - call - print call-related messages
  - sms  - print sms-related messages
  - sim  - print sim-related messages
  - dbus - print dbus-related messages
- SMS_DEBUG - determine what kind of debugging output to print from sms-glib
  - all - print everything
  - submit - encoding SMS-SUBMIT
  - deliver - decoding SMS-DELIVER
  - status-report - decoding and handling SMS-STATUS-REPORT


REQUIRED LIBRARIES
==================

Telepathy-Ring is based on telepathy-glib (0.11.7)


RUNNING WITH ELEVATED PRIORITY
==============================

Telepathy-Ring can be launched with RING_REALTIME and RING_MEMLOCK
environment variables set. If they are not set, the priorities are read from
/var/lib/telepathy-ring/realtime and /var/lib/telepathy-ring/memlock
instead.

Telepathy can be launched with, e.g., following shell script (run with root
privileges after the user login session D-Bus has been launched):

--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
#! /bin/sh

# obtain session bus address for Ring
. /tmp/session_bus_address.user

test -x /usr/bin/waitdbus &&
/usr/bin/waitdbus session

export RING_REALTIME=10
export RING_MEMLOCK=1

# Uncomment to obtain debug output
# RING_DEBUG=all
# CALL_DEBUG=all
# SMS_DEBUG=all
# MODEM_DEBUG=all

# Make ring wait for
export RING_PERSIST=1

exec /usr/lib/telepathy/telepathy-ring
--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--