Skip to content

Commit

Permalink
doc: Update connection managment algorithm
Browse files Browse the repository at this point in the history
We are using the main service auto-connect algorithm, thus
get rid of the old description.
  • Loading branch information
Daniel Wagner authored and pfl committed Feb 19, 2014
1 parent 4990bf7 commit 844286e
Showing 1 changed file with 8 additions and 50 deletions.
58 changes: 8 additions & 50 deletions doc/session-overview.txt
Expand Up @@ -5,56 +5,14 @@ Session API
Connection management algorithm basics
======================================

When a session is created, a sorted list of services is added to the
session. The services are filtered and sorted according AllowedBearers.

There are two triggers which lead to evaluate the connect
algorithm:

- Session.Connect()
- Offline

Connect algorithm:

Session.Connect()
|
+------+-------+
+-----+ECall Session ?+-----+
Yes| +--------------+ |No
| |
Connect to +--------------+
first available +---+AvoidHandover?+---+
Service | +--------------+ |
Yes| |No
+----------------+ |
+---+In service_list +---+ |
Yes| |and online? | |No |
| +----------------+ | |
| | |
Take that one Take first in
the service list
and try to connect

Disconnect algorithm

- Session.Disconnect()

Disconnect algorithm:

Session.Disconnect()
|
+--- Session.Change()
|
+-----------------+ Yes
|service not used +-------------+
|by other session?| |
+------.----------+ |
|No |
| |
Service.Disconnect() Do nothing

Session.Disconnect() will be blocked whenever a ongoing
emergency call is active.
The Session core uses the normal auto-connect algorithm for selecting
which services will be connected or disconnected. That means only
Services with AutoConnect to set to true will be used. The Session
core will assign a connected Service to a Session if the Service
is matching the AllowedBearer filter.

By using the normal auto-connect algorithm, it is possible to
use the Session API and the Service API at the same time.


Session States and Transitions
Expand Down

0 comments on commit 844286e

Please sign in to comment.