Table of Contents

API : PBX : Call Variable Get

Introduction

This request will return the value of a variable on an ongoing call.

Request

URL https://api.telecomx.dk/pbx/callvariable/CALL_ID/VARIABLE_NAME
Method GET
Access level PERSONAL, VIEWER, MANAGER, OWNER, RESELLER, ADMIN.
Param CALL_ID Id of call.
VARIABLE_NAME Name of the variable.

Query example

https://api.telecomx.dk/pbx/variable/pbx4.telecomx.dk:45455544.43/onduty

Response

Json object
name String Name of variable
value String Value of variable

Example

{
  name: 'onduty',
  value: '203'
}

Errors

Error code Message Description
403 access_denied Insufficient access level
404 name Variable not found
500 internal_error <Unspecified>