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

Latest commit

 

History

History
32 lines (23 loc) · 1.79 KB

File metadata and controls

32 lines (23 loc) · 1.79 KB

Check Call Server Connection

Check the SIP call server connection status.

HTTP MethodURLRequires Auth
GET/api/v1/voip/callServer/checkConnectionyes

{% hint style="info" %} Permission required: manage-voip-contact-center-settings {% endhint %}

Query Parameters

KeyExample ValueDescription
websocketUrl*wss://omni-asterisk.dev.rocket.chat/wsThe websocket URL.
host*localhostThe hostname of the call server.
port*3000The port number of the websocket.
path*test/voipThe path of the websocket.

Example Call

{% code overflow="wrap" %}

curl --location 'http://localhost:3000/api/v1/voip/callServer/checkConnection?websocketURL=wss%3A%2F%2Fomni-asterisk.dev.rocket.chat%2Fws&host=localhost&port=3000&path=test' \
--header 'X-Auth-Token: NcQtu58azANDJ1FuCmGvGVOWhYIpJVg4GqhK9h-j61l' \
--header 'X-User-Id: CkCPNcvsvCDfmWLqC'

{% endcode %}

Example Response

{
	"status": "connected" | "connection-error",
	"error?": "string"
}