mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-07-24 14:57:47 +02:00
Improve call schemas
To look more consistent with other schemas. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
e41a36f2b0
commit
5fdd8010fd
|
|
@ -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:
|
A call is set up with message events exchanged as follows:
|
||||||
|
|
||||||
```nohighlight
|
```nohighlight
|
||||||
Caller Callee
|
+---------+ +---------+
|
||||||
[Place Call]
|
| Caller | | Callee |
|
||||||
m.call.invite ----------->
|
+---------+ +---------+
|
||||||
m.call.candidate -------->
|
| |
|
||||||
[..candidates..] -------->
|
(Places Call) |
|
||||||
[Answers call]
|
|------- m.call.invite ------->|
|
||||||
<--------------- m.call.answer
|
|----- m.call.candidate ------>|
|
||||||
m.call.select_answer ----------->
|
|----- [..candidates..] ------>|
|
||||||
[Call is active and ongoing]
|
| |
|
||||||
<--------------- m.call.hangup
|
| (Answers call)
|
||||||
|
|<------ m.call.answer --------|
|
||||||
|
|--- m.call.select_answer --->|
|
||||||
|
. .
|
||||||
|
. (Call is active and ongoing) .
|
||||||
|
. .
|
||||||
|
| (Ends call)
|
||||||
|
|<------ m.call.hangup --------|
|
||||||
```
|
```
|
||||||
|
|
||||||
Or a rejected call:
|
Or a rejected call:
|
||||||
|
|
||||||
```nohighlight
|
```nohighlight
|
||||||
Caller Callee
|
+---------+ +---------+
|
||||||
m.call.invite ------------>
|
| Caller | | Callee |
|
||||||
m.call.candidate --------->
|
+---------+ +---------+
|
||||||
[..candidates..] --------->
|
| |
|
||||||
[Rejects call]
|
(Places Call) |
|
||||||
<-------------- m.call.hangup
|
|------- m.call.invite ------->|
|
||||||
|
|----- m.call.candidate ------>|
|
||||||
|
|----- [..candidates..] ------>|
|
||||||
|
| |
|
||||||
|
| (Rejects call)
|
||||||
|
|<------ m.call.reject --------|
|
||||||
```
|
```
|
||||||
|
|
||||||
Calls are negotiated according to the WebRTC specification.
|
Calls are negotiated according to the WebRTC specification.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue