1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
//! Types for the *m.call.invite* event. use js_int::UInt; use ruma_events_macros::ruma_event; use super::SessionDescription; ruma_event! { /// This event is sent by the caller when they wish to establish a call. InviteEvent { kind: RoomEvent, event_type: "m.call.invite", content: { /// A unique identifer for the call. pub call_id: String, /// 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. pub lifetime: UInt, /// The session description object. The session description type must be *offer*. pub offer: SessionDescription, /// The version of the VoIP specification this messages adheres to. pub version: UInt, }, } }