# roleEventOccured

Description: Notification after one of the conference participants changes the role (take the podium, leave the podium, etc).

During a role-based conference

Example:

{
    "event": "roleEventOccured",
    "peerId": "user2@some.server",
    "peerDn": "user2",
    "role": 3,
    "type": 0,
    "result": 1,
    "broadcast": true,
    "confId": "00000351@some.server#vcs",
    "method": "event"
}

Parameter description:

  • confId — Unique communication session identifier

  • peerIdTrueConf ID unique user identifier

  • peerDn — User display name.

  • role — Participant’s role:

    • 0 — without changes

    • 1 — General

    • 2 — the conference owner

    • 3 — the user who requested the podium

    • 4 — the user who was invited to the podium

    • 5 — the user who is currently making an audio reply

  • type — Role change type:

    • 0 — request

    • 1 — response

    • 2 — confirmation

    • 3 — notification

  • result — Response to a role change request:

    • 0 — positive response

    • 1 — general response

    • 2— the role is already taken

    • 3 — declined by the participant

    • 4 — the participant did not reply

    • 5— the participant has not joined

  • broadcast — Flag showing whether a user is on the podium.

See also: