From 455fca8a0e8273e1dbbdd4d6a137ab03487b33a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Tue, 13 Jun 2023 23:53:36 +0200 Subject: [PATCH] Add lifetime back MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- data/event-schemas/examples/m.call.negotiate.yaml | 1 + data/event-schemas/schema/m.call.negotiate.yaml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/data/event-schemas/examples/m.call.negotiate.yaml b/data/event-schemas/examples/m.call.negotiate.yaml index 800ddba5..fabb6add 100644 --- a/data/event-schemas/examples/m.call.negotiate.yaml +++ b/data/event-schemas/examples/m.call.negotiate.yaml @@ -5,6 +5,7 @@ "version" : "1", "party_id": "67890", "call_id": "12345", + "lifetime": 10000, "description": { "type" : "offer", "sdp" : "v=0\r\no=- 6584580628695956864 2 IN IP4 127.0.0.1[...]" diff --git a/data/event-schemas/schema/m.call.negotiate.yaml b/data/event-schemas/schema/m.call.negotiate.yaml index 0c1df68c..4a6961b3 100644 --- a/data/event-schemas/schema/m.call.negotiate.yaml +++ b/data/event-schemas/schema/m.call.negotiate.yaml @@ -59,8 +59,15 @@ properties: required: - type - sdp + lifetime: + type: integer + description: The time in milliseconds that the invite is valid for. + Once the invite age exceeds this value, clients should discard it. + They should also no longer show the call as awaiting an answer in the + UI. required: - description + - lifetime type: type: string enum: