Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
41 lines (31 loc) · 1.65 KB

File metadata and controls

41 lines (31 loc) · 1.65 KB

Send Call Center Events

Send the VoIP client events.

HTTP MethodURLRequires Auth
POST/api/v1/voip/eventsyes

{% hint style="info" %} Permission required: view-l-room {% endhint %}

Body Parameters

KeyExample ValueDescription
rid*c9YW3rejo7HeL6ZDWThe room ID.
event*stringList of VoIP client events.
commentstringThe comment.

VoIP Client Events

List of VoIP client Events available in enum format.

{
	"VOIP-CALL-STARTED" = "voip-call-started",
	"VOIP-CALL-ENDED" = "voip-call-ended",
	"VOIP-CALL-DECLINED" = "voip-call-declined",
	"VOIP-CALL-ON-HOLD" = "voip-call-on-hold",
	"VOIP-CALL-UNHOLD" = "voip-call-unhold",
	"VOIP-CALL-DURATION" = "voip-call-duration",
}

Example Call

curl --location --request POST 'localhost:3000/api/v1/voip/events' \
--header 'X-Auth-Token: aEoKaT8qus3IZHlr_OlAzcsnz46SzZLJeqoRbbctcDQ' \
--header 'X-User-Id: 6vHSSqdBHdm2R4gfi' \
--header 'Content-Type: application/json' \
--data-raw '{
    "rid": "oWLW6v8c8oRGb4cC9",
    "event": "voip-call-started"
}'