Improve call schemas

To look more consistent with other schemas.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2026-05-08 11:22:14 +02:00
parent e41a36f2b0
commit 5fdd8010fd
No known key found for this signature in database
GPG key ID: 03AEEC581F0139CE

View file

@ -131,27 +131,39 @@ or not there have been any changes to the Matrix spec.
A call is set up with message events exchanged as follows:
```nohighlight
Caller Callee
[Place Call]
m.call.invite ----------->
m.call.candidate -------->
[..candidates..] -------->
[Answers call]
<--------------- m.call.answer
m.call.select_answer ----------->
[Call is active and ongoing]
<--------------- m.call.hangup
+---------+ +---------+
| Caller | | Callee |
+---------+ +---------+
| |
(Places Call) |
|------- m.call.invite ------->|
|----- m.call.candidate ------>|
|----- [..candidates..] ------>|
| |
| (Answers call)
|<------ m.call.answer --------|
|--- m.call.select_answer --->|
. .
. (Call is active and ongoing) .
. .
| (Ends call)
|<------ m.call.hangup --------|
```
Or a rejected call:
```nohighlight
Caller Callee
m.call.invite ------------>
m.call.candidate --------->
[..candidates..] --------->
[Rejects call]
<-------------- m.call.hangup
+---------+ +---------+
| Caller | | Callee |
+---------+ +---------+
| |
(Places Call) |
|------- m.call.invite ------->|
|----- m.call.candidate ------>|
|----- [..candidates..] ------>|
| |
| (Rejects call)
|<------ m.call.reject --------|
```
Calls are negotiated according to the WebRTC specification.