Fix m.call.negotiate schema and example (#1546)

* Fix m.call.negotiate schema and example

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>

* Add changelog

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>

* Add lifetime back

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>

* Fix lifetime description

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>

---------

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2023-10-03 23:16:53 +02:00 committed by GitHub
parent c3098cc55c
commit 242b62ed55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View file

@ -0,0 +1 @@
Fix `m.call.negotiate` schema and example.

View file

@ -6,7 +6,7 @@
"party_id": "67890", "party_id": "67890",
"call_id": "12345", "call_id": "12345",
"lifetime": 10000, "lifetime": 10000,
"offer": { "description": {
"type" : "offer", "type" : "offer",
"sdp" : "v=0\r\no=- 6584580628695956864 2 IN IP4 127.0.0.1[...]" "sdp" : "v=0\r\no=- 6584580628695956864 2 IN IP4 127.0.0.1[...]"
} }

View file

@ -42,15 +42,16 @@ properties:
allOf: allOf:
- "$ref": core-event-schema/call_event.yaml - "$ref": core-event-schema/call_event.yaml
properties: properties:
offer: description:
type: object type: object
title: Offer title: Description
description: The session description object description: The session description object
properties: properties:
type: type:
type: string type: string
enum: enum:
- offer - offer
- answer
description: The type of session description. description: The type of session description.
sdp: sdp:
type: string type: string
@ -60,12 +61,10 @@ properties:
- sdp - sdp
lifetime: lifetime:
type: integer type: integer
description: The time in milliseconds that the invite is valid for. description: The time in milliseconds that the negotiation is valid for.
Once the invite age exceeds this value, clients should discard it. Once the negotiation age exceeds this value, clients should discard it.
They should also no longer show the call as awaiting an answer in the
UI.
required: required:
- offer - description
- lifetime - lifetime
type: type:
type: string type: string